Einzelnen Beitrag anzeigen

All772

Registriert seit: 12. Mär 2008
2 Beiträge
 
#1

Linux,Tomcat: unhandled exception in a native code Library

  Alt 12. Mär 2008, 22:37
Hallo,
please help me...
I recieve an unhandled exception in my native code Library that I wrote at first in Delphi on windows, then migrate it on Lazarus under windows as *.dll and then migrate it on Lazarus (FreePascal) under Linux as *.so module.
I call the library functions (native code) from java using JNI.pas for
Java-->Delphi :
http://home.pacifier.com/~mmead/jni/delphi/

Under Windows it runs good in tomcat 6, but under Linux it runs only in a small test program, but in tomcat I recieve sporadic an "Unhandled Exception: AccessViolationException at Address xy".

The problem, that I have, depends may be on garbadge collector or shared memory (java and native code libraries).
Is it a problem of UTF-8 format, that linux has as default?
Have you any idea or experience with JNI and native libraries on Linux?
Is it the problem of Lazarus or Lazarus compiler setting?
Thanks

You can write in German too...
  Mit Zitat antworten Zitat