failed to unload classloader once loaded dll.
This is yet another 'unload dll' topic.
I badly need unload a dll. As adviced by many threads, i created custom classloader - once it is gc-ed it should unload it's native libs.
Classloader works fine and is gc-ed fine - as long i do not call a method from dll.
Once a dll method is called, the classloader is never gc-ed (PhantomReference to it is never enqueued).
i use jre 1.5_09 on windows xp.
the method called from dll is static, has no args, does not use JNIEnv or jclass and just returns a zero.
Please, any ideas?

