In a service, I initialize a class and then call a sub in the class. That sub is just to start a thread.
I suggest you search the error message text in the source code of B4A. If there is an error in my code, the IDE is supposed to show them in the logs box.