Category: Java/.NET Runtime
Why does my application crash on exit?
An on-exit crash could be a problem related to a bug in your own, or it could be something that we have encountered in the past.
The infamous on exit crash has occurred for a couple of customers and as we could never reproduce it, it was very hard to figure out what was going on. It turns out that sometimes the operating system will unload a dynamically loaded JVM before it executes the cleanup code of our statically allocated proxy wrapper objects. When these objects' destructructors get invoked by the .NET runtime they want to perform some Java cleanup, and find the JVM gone...
We implemented a workaround that involves the setting of a configuration option that disables proxy-related cleanup at program termination. You can set this option programmatically via:
loader.NoShutdownProcessing = true;
or in your XML config file via:
<add key="NoShutdown" value="true" />
If neither of these options helps, it's either your bug or a problem we've never seen before and that we will want to hear about.