![]() |
|
#1
|
||||
|
||||
Unable to catch exception in native codeHi all,
I hope this post is within scope for this forum. I have a Java-based application that uses native C++ libraries (built with g++-4.0 on Debian GNU/Linux Testing) for specialized, computation-intensive routines. Within the native code, I need to catch exceptions thrown inside called methods and throw a corresponding Java exception back to the JVM. This used to work just fine. But I am performing a rebuild after some time has past, and our platform itself has had some upgrades (to glibc, etc.). Consequently, the desired functionality seems to be broken. The exceptions are not being caught in the new build. Note: the same code built and tested on MS Windows platforms using Visual C++ .NET 2003 works exactly as expected. Here is a snippet some of the code that is failing: CPP / C++ / C Code:
Here is the error message that the system gives: Code:
Any input or advice would be terrific. Matthew |
||||
|
#2
|
||||
|
||||
Re: Unable to catch exception in native codeWell, I have successfully rebuilt using version 3.4 GNU compiler. Hence, I must conclude for the moment that there is some peculiar bug in the latest gcc packages for Debian testing. Until an update is available that could potentially address such a bug, I'll consider this issue closed.
Thanks to all who may have read this post. If you are using JNI with g++-4.0, you may find this relevant. Matthew |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Opinion on my code and a c++ class question | FlipNode | C++ Forum | 7 | 07-Feb-2006 09:15 |
| Guidelines for posting requests for help - UPDATED! | WaltP | C++ Forum | 0 | 21-Apr-2005 03:44 |
| Problem with int mixed with char,... | leitz | C++ Forum | 17 | 07-Dec-2004 21:56 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The