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?

[568 byte] By [mstanika] at [2007-11-26 17:54:06]
# 1
i solved the problem. it just works + i learned one lesson:- never put a breakpoint into class you would like to unload :-)bye, martin
mstanika at 2007-7-9 5:07:08 > top of Java-index,Java HotSpot Virtual Machine,Specifications...