Android Question [Solved] Error in RaiseEventresume

angel_

Well-Known Member
Licensed User
Longtime User
I have the following error in release mode, in debug mode this error does not appear

B4X:
b4xcombobox$ResumableSub_RaiseEventresume (java line: 251)
java.lang.Exception: Sub spn1_selectedindexchanged was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:202)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1083)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1038)
    at com.ab.b4xcombobox$ResumableSub_RaiseEvent.resume(b4xcombobox.java:251)
    at com.ab.b4xcombobox._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv2(b4xcombobox.java:154)
    at com.ab.b4xcombobox._cmbbox_itemclick(b4xcombobox.java:98)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
    at anywheresoftware.b4a.BA$1.run(BA.java:335)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6898)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Any idea?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

angel_

Well-Known Member
Licensed User
Longtime User
This is actually a bug in B4XComboBox. The solution as DonManfred wrote is to add the missing sub. In the next version of XUI Views it will be optional.
Thank you, perhaps it could also be added
 
Upvote 0
Top