🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #13216

Re: JApplets don't get cleaned up

#13216
From: Max Polk
Date: Mon, 07 Sep 1998 00:00
18 lines
1359 bytes
> 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.

This is one of the very most sore spots I have with Java -- that you have 
to "remember" to do things you ordinarily put into a C++ destructor.  But 
this is the price you pay for garbage collection I suppose.  Still, it 
would seem reasonable to enhance the language to allow you to force 
finalization if desired so we can count on it.
Technical Details
Message-ID: <MPG.105502dba23d6a4d989691@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35EAE699.ED3D3044@SDInc.com> <35EB2A04.6CCB3DF2@inprise.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: none@none.com (Max Polk)
Subject: Re: JApplets don't get cleaned up
Date: 1998/09/07
Message-ID: <MPG.105502dba23d6a4d989691@forums.borland.com>
X-Deja-AN: 388853381
References: <35EAE699.ED3D3044@SDInc.com> <35EB2A04.6CCB3DF2@inprise.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing