Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / July 2005

Tip: Looking for answers? Try searching our database.

unloading the native library from applet.

Thread view: 
sarath - 22 Jul 2005 11:23 GMT
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~
Stefan Schulz - 22 Jul 2005 11:53 GMT
>    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"
         



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.