tchart Well-Known Member Licensed User Longtime User Yesterday at 9:48 PM #1 Hi, Im calling a B4J sub from a java library using raiseEvent2. The sub returns a String. It works fine when the project is running in Release mode. However in Debug mode raiseEvent2 is recieving a null from the sub. Is there a workaround for this? Thanks
Hi, Im calling a B4J sub from a java library using raiseEvent2. The sub returns a String. It works fine when the project is running in Release mode. However in Debug mode raiseEvent2 is recieving a null from the sub. Is there a workaround for this? Thanks
tchart Well-Known Member Licensed User Longtime User Yesterday at 10:04 PM #2 Tried raiseEventFromDifferentThread but same result Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Today at 6:06 AM #3 1. raiseEventFromDifferentThread doesn't return anything. 2. raiseEvent(2) should only be called from the main thread. If you are calling it from a background thread then bad things will happen. Upvote 0
1. raiseEventFromDifferentThread doesn't return anything. 2. raiseEvent(2) should only be called from the main thread. If you are calling it from a background thread then bad things will happen.