Re: Exception/Error handling with JNI
Sunday, November 6, 2005 05:12 PM
Perhaps you need to try a periodic checkpoint, where you save the current state. Then if the thing crashes you can restart from the most recent checkpoint, instead of starting over from the beginning.
Otherwise consider getting rid of native code (e.g. the C++) and just using Java, I guess. Or, learn about signal handlers in C/C++, and prepare for some messy coding/testing/debugging on that.