Android Question Debug (rapid) Fails When Starting Service In Library

UK Batteries

New Member
Licensed User
Longtime User
Hi,

I can repeat this with a very simple Test Application that starts two services - one (Called OwnService) in the application and one in a external Library compiled from BASIC4Android (called
LibraryService).

Both services merely send a ToastMessage to confirm they have started.

Compile (release) and Compile & Debug (legacy) work as they should.


However,

Compile & Debug (rapid) fails when starting 'LibraryService' with :-

java.lang.RuntimeException: Unable to create service b4a.example.libraryservice: java.lang.RuntimeException: java.lang.Exception: Sub CREATE was not found.

at android.app.ActivityThread.handleCreateService(ActivityThread.java:2263)
at android.app.ActivityThread.access$1600(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.Exception: Sub CREATE was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at b4a.example.libraryservice.onCreate(libraryservice.java:42)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2253)
... 10 more
Caused by: java.lang.Exception: Sub CREATE was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:176)
... 12 more

If I only start 'OwnService' there are no problems.


Anyone any idea why Sub CREATE cannot be found - but only in a Library Service whilst in Debug (rapid) mode?
 
Top