Article View: borland.public.jbuilder.java.language
Article #17202Re: Garbage Collection ... Urgent..
From: Steve Schafer (TeamB)
Date: Wed, 02 Dec 1998 00:00
Date: Wed, 02 Dec 1998 00:00
32 lines
1882 bytes
1882 bytes
On Wed, 02 Dec 1998 14:24:19 +0900, Arumugam <arumugam@kbo.mss.co.jp> wrote: > When I close the frame, then all the objects related to that frame will >gets deleted. > Am I right.? No, closing the window does not cause the child objects to be deleted. > Eg., support if I did, X = new Frame(); > Then after closing, in the mainframe if I did, X = null; If you do X = null, then the old Frame is not immediately deleted (it waits for garbage collection), but you no longer have any access to it. So from the point of view of your program, it is essentially the same as being deleted. > If the class definitions have already been loaded into the memory, then >for the second time, when frame created, then it uses ONLY the definitions >but not the values related to the FRAME. Am I right.? If I understand you, what you're saying is correct. Every time you create a new Frame, it uses the default values for all of the fields and objects within the Frame. > If that is right.? Why when new Frame is created for the second time, >it is not setting the initial value for the new frame. ? I don't understand this question. Can you give a simple code example that demonstrates what you're saying? -Steve
Technical Details
Message-ID:
<370be1c9.687673616@90.0.0.40>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<366268E8.72DDAB2A@spiral.mik.mss.co.jp> <36cbbfab.547846374@90.0.0.40> <3664CF03.A1DDC7D7@kbo.mss.co.jp>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6016f55752add430 X-Google-Attributes: gidf74b3,public From: pandeng@telepath.com (Steve Schafer (TeamB)) Subject: Re: Garbage Collection ... Urgent.. Date: 1998/12/02 Message-ID: <370be1c9.687673616@90.0.0.40> X-Deja-AN: 417761259 Content-Transfer-Encoding: 7bit References: <366268E8.72DDAB2A@spiral.mik.mss.co.jp> <36cbbfab.547846374@90.0.0.40> <3664CF03.A1DDC7D7@kbo.mss.co.jp> Content-Type: text/plain; charset=us-ascii Organization: TeamB Mime-Version: 1.0 Reply-To: pandeng@telepath.com Newsgroups: borland.public.jbuilder.java.language