Re: JVM access violation in Type Browser

Morten Andersen <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Organization Arosii Information Systems A/S
Message-ID <[email protected]>
Hi Roger

Roger I Martin PhD wrote:

> I do think it would be good if I went thru the typelib native code I
> wrote and apply exception handling I learned from Robert...

Will this make any sense for Jawin itself too? I have been thinking
about the very simple wrapping of all JNI entry points in the native
code like:

try {

} catch (...) {
   // "..." catches everything
   // raise java-runtime error and return

}

This should (hopefully) lead to Jawin never crashing the JVM. But if
your and Roberts exception handling schema is more "fine granular" it
may suit Jawin better. And perhaps it can also be dangerous to catch and
continue after eg. an access violation?, but since we will make it throw
a runtime error it least leaves the user of Jawin to decide what to do
with these errors (eg. catch and continue or let the JVM abort), today
he doesn't have any chance on a native unhandled exception.

Best Regards
Morten
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.