![]() |
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 : ![]() 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... |
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 ![]() |
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 00:20 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz