I can't figure out why this is happening. I even set "RaisesSynchronousEvents:true"...
Heres a bit of code of my Library:
B4X:
//~Event:PageFinished (Url As String, Success as Boolean)
//~Event:OverrideUrl (Url As String)
//~Event:function (fname As String, params As String, ret As String)
//~RaisesSynchronousEvents:true
Yes understand that but i need to return a value. This is where the error is happening. if i write the code without expecting a return value, everything is fine.
Thanks @Erel, after I was struggling to set up everything in the library for Release mode (armv7 architechture) I found out that its working fine in release mode (seems strange to me).
In debug mode its still crashing with the same error...Maybe im missing some configuration or something like that?
Make sure that no event is raised on a different thread. It will look like it is working in release mode though you will encounter other issues eventually.