hi everyone..
I am using a signed applet, that is using the native libraries. The
problem is, i am able to access the libraries for the first time. When
i am trying to run the same applet again, it gives an error that the
.dll files i am using is locked by another program. however, if i open
another browser window, it works fine.
is it because my applet is not releasing the hold on the .dll files ?
if so, can anyone give an example of unloading the library in an
applet ?
any help would be appreciated.
Thanks in advance
~sarath~
> I am using a signed applet, that is using the native libraries. The
> problem is, i am able to access the libraries for the first time. When
> i am trying to run the same applet again, it gives an error that the
> .dll files i am using is locked by another program.
I think the issue might be that you try to load the same library twice.
The JVM of an applet persists even when the applet has stopped running.
> however, if i open
> another browser window, it works fine.
This is likely because the new browser window creates a new instance of
the JVM, which can then load the native library again
> is it because my applet is not releasing the hold on the .dll files ?
> if so, can anyone give an example of unloading the library in an
> applet ?
I guess you really can't. I am not sure if class data persists between
different applets, but if so, you might set some static flag if you
already loaded it.

Signature
You can't run away forever,
But there's nothing wrong with getting a good head start.
--- Jim Steinman, "Rock and Roll Dreams Come Through"