B4J Question CheckedChanged Errors


Active Member
Licensed User
Longtime User
I've been ignoring an error with the Check Combo Box, but now I am concerned that the error logs it causes may be preventing me from seeing other problems.

The issue is demonstrated in the attached program. Clicking the Test button runs the code
    ccbxTestBox.SetChecked(2, True)
at which point the logs record a page or two of red print, starting with
Unexpected event (missing RaiseSynchronousEvents): ccbxtestbox_checkedchanged
java.lang.Exception: Stack trace
    at java.base/java.lang.Thread.dumpStack(Thread.java:1383)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:199)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:167)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
    at anywheresoftware.b4a.shell.ShellBA.raiseEvent2(ShellBA.java:98)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
    at anywheresoftware.b4j.objects.CheckComboBoxWrapper$2.onChanged(CheckComboBoxWrapper.java:74)
  • This only happens in debug mode.
  • The error does not occur if the event sub:
Sub ccbxTestBox_CheckedChanged
End Sub
is omitted or commented out.
Can anyone shed any light on what is causing it - and how to eliminate it?


  • ccbx checkedChanged errors.zip
    2.4 KB · Views: 170