Hello. When a java class use a fpc library that call jni.CallVoidMethod inside a thread it crash the application.
If the fpc library call jni.CallVoidMethod directly (not via a thread) => perfect, it works. Is that a known problem ? Maybe does it exist something else than jni.CallVoidMethod for inside a thread (like synchronize or queue for procedure of object) ? Here the java error message : # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f6d0e405be1, pid=5145, tid=140105962755840 # # JRE version: OpenJDK Runtime Environment (7.0_51) (build 1.7.0_51-b00) # Java VM: OpenJDK 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops) # Problematic frame: # V [libjvm.so+0x4debe1] Exceptions::throw_stack_overflow_exception(Thread*, char const*, int, methodHandle)+0x211 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again Many thanks. ----- Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Java-crash-when-fpc-library-CallVoidMethod-in-a-thread-tp5719098.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal