Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Linux,Tomcat: unhandled exception in a native code Library (https://www.delphipraxis.net/110098-linux-tomcat-unhandled-exception-native-code-library.html)

All772 12. Mär 2008 21:37


Linux,Tomcat: unhandled exception in a native code Library
 
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...

RWarnecke 13. Mär 2008 07:05

Re: Linux,Tomcat: unhandled exception in a native code Libra
 
Hello and Welcome to DelphiPraxis,

had you debug the library in Lazarus ? Under windows you can debug DLL, i mean that you can do the same under Lazarus on linux. Or is there a special command only for windows tomcat 6 in the library ?

Edit:
Under this link you find a description to debug a servlet.

All772 13. Mär 2008 08:04

Re: Linux,Tomcat: unhandled exception in a native code Libra
 
Hello,
I don't know how can I debug it in Lazarus, if the library loaded by tomcat and runs with Java virtual machiene.
I've tried allready to put in Lazarus Start-Parameter tomcat start command line, but it didn't worked. Then only java.exe with path, it didn't worked too.

The problem is, that it works 100% under linux in testprogram, but not in tomcat.
May be the garbarge collector make some problem too?!?


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:42 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz