Hi,
I am working on Windows XP, using sdk142.
My code does sth like this:
// load the library via Windows API
LoadLibrary("jvm");
// get some proc addresses
GetProcAddress(...);
// create the Java VM via JNI
JNI_CreateJavaVM(...);
/*
* do some calls to the JNI via JNIEnv
*/
// after all destroy the VM
DestroyJavaVM(...);
// unload the dll via Windows API
FreeLibrary(...);
This works fine, but the jvm.dll is never unloaded ! If I call FreeLibrary() just after getting the proc addresses, the unload succeeds, but a call of FreeLibrary() after the JNI_CreateJavaVM doesn`t work .
How can I solve the problem ?
kind regards
Adrian Ofterdinger