Re: unloading the native library from applet.
- From: Stefan Schulz <terra@xxxxxxxxxxxx>
- Date: Fri, 22 Jul 2005 12:53:20 +0200
On Fri, 22 Jul 2005 03:23:27 -0700, sarath wrote:
> 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.
--
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"
.
- References:
- unloading the native library from applet.
- From: sarath
- unloading the native library from applet.
- Prev by Date: unloading the native library from applet.
- Next by Date: logger.log
- Previous by thread: unloading the native library from applet.
- Next by thread: logger.log
- Index(es):
Relevant Pages
|