Hello,
Im writing a Library right now and Im trying to raise an Event in B4I, then I want to get the return value from this Event.
When I raise the Event, the App crashes and the Log says the following:
I can't figure out why this is happening. I even set "RaisesSynchronousEvents:true"...
Heres a bit of code of my Library:
Here Im calling the Event:
I hope someone can help me with this issue.
Im writing a Library right now and Im trying to raise an Event in B4I, then I want to get the return value from this Event.
When I raise the Event, the App crashes and the Log says the following:
Unexpected event (missing RaisesSynchronousEvents): wv_test:::
SignalHandler 11
Error occurred on line: 0 (act_cstm)
Signal - 11
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
Here Im calling the Event:
B4X:
NSString* evtname = [NSString stringWithFormat: @"%@%@", @"_", param];
evtname = [NSString stringWithFormat: @"%@%@", evtname, @":::"];
NSLog([NSString stringWithFormat:@"%@%@",@"CallSub triggered with ", evtname]);
NSString* ret = [B4IObjectWrapper raiseEvent:self :evtname :@[param2,param3,param4]];
NSLog(ret);
return ret;
I hope someone can help me with this issue.