logo       

Error handling and thirdparty licenses (was: [JAWIN] JVM access violation i: msg#00001

windows.devel.jawin

Subject: Error handling and thirdparty licenses (was: [JAWIN] JVM access violation in Type Browser)

Hi Roger

Morten Andersen wrote:

HANDLE_JNI_EXCEPTIONS() for catching all the exceptions we throw.

So at least for a first attempt to "catch all the rest", and avoid
native JVM-crashes, I think I will look into applying a catch(...) macro
over the weekend (I just did a quick search in Stroustrup's C++ guide,
and it seems he describes a way to retrieve the caught exception, when
using the ...-catch, so it should hopefully be trivial).

I finally got around to applying this. Please see the
HANDLE_WIN32_EXCEPTIONS in JNIException.h. I used a CPP class from
http://www.codeproject.com/cpp/exception.asp and it seems to work well
(I wrote a few testcases). Although I am not that fluent in writing CPP
macros/defines so if either of you thinks that there is a smarter way to
do this, please feel free to change it.

And since I was in the process of updating the license information with
the relevant info for this class, I also added license information for
Apache Xalan and Xerces used by the Type Browser.

Best Regards
Morten



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise