I have a class module that initializes a timer in the _initialize, and when another method is called enables the timer. I have logging in the _Tick callback, and the method that enables it. When compiling the class into the app, everything works fine, but if I compile the class to a lib and then tell my app to use that...the timer never fire. Why might that be?
2 files. bcn is the stripped down class, bcl is the stripped ui that uses it. If compiled to a lib, the timer in the class never ticks. If you include the module in bcl directly, it does.
If you need to use the libraries from both a UI and non-Ui applications then you can put the library modules in the shared modules folder and create two projects (UI and non-UI) that use these modules. Now you can create a library for each version.
I don't recommend using jServer in a UI application. It is designed to work in non-ui applications.
There are differences between libraries written in Java and libraries written in B4J. When you write the library with B4J the classes expect a "context" of a specific type.