Article View: borland.public.jbuilder.java.swing
Article #13197Re: JApplets don't get cleaned up
From: Richard Wilkman
Date: Mon, 31 Aug 1998 00:00
Date: Mon, 31 Aug 1998 00:00
39 lines
2021 bytes
2021 bytes
Pamela: You've never been able to count on your finalizer in Applets. If the browser closes the VM dies. As it dies it may start the process for the finalizer but like garbage collection there is no guarantee. -Rich Pamela Frimer wrote: > > I created an applet that is based off of JApplet. There are no > components on the applet and the applet itself doesn't do anything. I > just created a new applet within JBuilder and did not add any code, > except for a finalize routine to see if it gets called. When I run the > applet in a browser, the finalizer never gets executed even if I exit > the browser. I also force the garbage collector to run and the > JApplet's finalizer never gets called. If I base the exact same applet > from the Applet class instead of JApplet, the finalize routine get > called correctly. Is anyone else experiencing this problem? Is there > something else needed to be done for JApplets to cause them to get > cleaned up? > > Thanks, > Pam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<35EB2A04.6CCB3DF2@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35EAE699.ED3D3044@SDInc.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e885667b76b06d4b X-Google-Attributes: gid111d45,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: JApplets don't get cleaned up Date: 1998/08/31 Message-ID: <35EB2A04.6CCB3DF2@inprise.com> X-Deja-AN: 386593517 Content-Transfer-Encoding: 7bit References: <35EAE699.ED3D3044@SDInc.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing