Article View: borland.public.jbuilder.java.swing
Article #13220Re: JApplets don't get cleaned up
From: Richard Wilkman
Date: Tue, 08 Sep 1998 00:00
Date: Tue, 08 Sep 1998 00:00
42 lines
2173 bytes
2173 bytes
Max: I agree with you in cases where you're running a real VM and some of the GC model changes in 1.2 and Hotspot should address this. -Rich Max Polk wrote: > > > 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. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 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:
<35F55734.61CEC7B2@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35EAE699.ED3D3044@SDInc.com> <35EB2A04.6CCB3DF2@inprise.com> <MPG.105502dba23d6a4d989691@forums.borland.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/09/08 Message-ID: <35F55734.61CEC7B2@inprise.com> X-Deja-AN: 389066209 Content-Transfer-Encoding: 7bit References: <35EAE699.ED3D3044@SDInc.com> <35EB2A04.6CCB3DF2@inprise.com> <MPG.105502dba23d6a4d989691@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing