🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17201

Re: Garbage Collection ... Urgent..

#17201
From: Arumugam
Date: Wed, 02 Dec 1998 00:00
161 lines
5894 bytes
--------------F85CC8048D489CF184422A7B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Steve Schafer (TeamB) wrote:

> On Mon, 30 Nov 1998 18:44:08 +0900, Seiichi Tanaka
> <tanaka@spiral.mik.mss.co.jp> wrote:
>
> >    Can anyone tell me how to remove the Garbage collection in JBuilder
> >2.?
> >
> >    My problem is as follows :
> >
> >    I have an application, which has two frames (Main Frame and
> >ChildFrame).
> >    Through Main Frame, I can open and close the ChildFrame (as many
> >times as I like).
> >
> >     While closing the childframe, I would like to delete all the
> >garbage collections related to that Frame.   Can anyone tell me how to
> >do that.?
> >    Because, when I open the frame for the first time, it is slow...It
> >takes time to load the images, and it initializes the global
> >variables...etc..
> >
> >    The same frame when opened for 2nd time or 3rd time... it is very
> >fast..  It loads the images very fast.  Also the global variable does
> >not holds the initial values, when the frame comes up for the second
> >time.
>
> It's not clear what you are asking. Why do you think your problem has
> anything to do with garbage collection? In a Windows environment,
> creating a window for the first time, rendering a bitmap for the first
> time, etc., _always_ takes longer than just hiding the object and
> showing it again.
>
> -Steve

 Hi Steve,

    When I close the frame, then all the objects related to that frame will
gets deleted.
    Am I right.?

    Eg., support if I did, X = new Frame();
    Then after closing, in the mainframe if I did, X = null;

    I don"t want the initial values to hang around.
    My problems is to delete all the values when the frame gets deleted.

    I have one doubt..  sorry if it is silly.
    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 that is right.?  Why when new Frame is created for the second time,
it is not setting the initial value for the new frame.  ?

    Thanks in advance

    with Regards

    Arumugam

--
B. Arumugam
Mitsubishi Space Software,
JAPAN.

Phone ; +81-467-47-6708
E-Mail : arumugam@kbo.mss.co.jp



--------------F85CC8048D489CF184422A7B
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
Steve Schafer (TeamB) wrote:
<BLOCKQUOTE TYPE=CITE>On Mon, 30 Nov 1998 18:44:08 +0900, Seiichi Tanaka
<BR>&lt;tanaka@spiral.mik.mss.co.jp> wrote:

<P>>&nbsp;&nbsp;&nbsp; Can anyone tell me how to remove the Garbage collection
in JBuilder
<BR>>2.?
<BR>>
<BR>>&nbsp;&nbsp;&nbsp; My problem is as follows :
<BR>>
<BR>>&nbsp;&nbsp;&nbsp; I have an application, which has two frames (Main
Frame and
<BR>>ChildFrame).
<BR>>&nbsp;&nbsp;&nbsp; Through Main Frame, I can open and close the ChildFrame
(as many
<BR>>times as I like).
<BR>>
<BR>>&nbsp;&nbsp;&nbsp;&nbsp; While closing the childframe, I would like
to delete all the
<BR>>garbage collections related to that Frame.&nbsp;&nbsp; Can anyone
tell me how to
<BR>>do that.?
<BR>>&nbsp;&nbsp;&nbsp; Because, when I open the frame for the first time,
it is slow...It
<BR>>takes time to load the images, and it initializes the global
<BR>>variables...etc..
<BR>>
<BR>>&nbsp;&nbsp;&nbsp; The same frame when opened for 2nd time or 3rd
time... it is very
<BR>>fast..&nbsp; It loads the images very fast.&nbsp; Also the global
variable does
<BR>>not holds the initial values, when the frame comes up for the second
<BR>>time.

<P>It's not clear what you are asking. Why do you think your problem has
<BR>anything to do with garbage collection? In a Windows environment,
<BR>creating a window for the first time, rendering a bitmap for the first
<BR>time, etc., _always_ takes longer than just hiding the object and
<BR>showing it again.

<P>-Steve</BLOCKQUOTE>
&nbsp;Hi Steve,

<P>&nbsp;&nbsp;&nbsp; When I close the frame, then all the objects related
to that frame will gets deleted.
<BR>&nbsp;&nbsp;&nbsp; Am I right.?

<P>&nbsp;&nbsp;&nbsp; Eg., support if I did, X = new Frame();
<BR>&nbsp;&nbsp;&nbsp; Then after closing, in the mainframe if I did, X
= null;

<P>&nbsp;&nbsp;&nbsp; I don"t want the initial values to hang around.
<BR>&nbsp;&nbsp;&nbsp; My problems is to delete all the values when the
frame gets deleted.

<P>&nbsp;&nbsp;&nbsp; I have one doubt..&nbsp; sorry if it is silly.
<BR>&nbsp;&nbsp;&nbsp; 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.&nbsp;
Am I right.?

<P>&nbsp;&nbsp;&nbsp; If that is right.?&nbsp; Why when new Frame is created
for the second time, it is not setting the initial value for the new frame.&nbsp;
?

<P>&nbsp;&nbsp;&nbsp; Thanks in advance

<P>&nbsp;&nbsp;&nbsp; with Regards

<P>&nbsp;&nbsp;&nbsp; Arumugam
<PRE>--&nbsp;
B. Arumugam
Mitsubishi Space Software,
JAPAN.

Phone ; +81-467-47-6708
E-Mail : arumugam@kbo.mss.co.jp</PRE>
&nbsp;</HTML>

--------------F85CC8048D489CF184422A7B--
Technical Details
Message-ID: <3664CF03.A1DDC7D7@kbo.mss.co.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <366268E8.72DDAB2A@spiral.mik.mss.co.jp> <36cbbfab.547846374@90.0.0.40>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6016f55752add430
X-Google-Attributes: gidf74b3,public
From: Arumugam <arumugam@kbo.mss.co.jp>
Subject: Re: Garbage Collection ... Urgent..
Date: 1998/12/02
Message-ID: <3664CF03.A1DDC7D7@kbo.mss.co.jp>
X-Deja-AN: 417743574
References: <366268E8.72DDAB2A@spiral.mik.mss.co.jp> <36cbbfab.547846374@90.0.0.40>
Content-Type: multipart/alternative; boundary="------------F85CC8048D489CF184422A7B"
Organization: Mitsubishi Space Software, JAPAN
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language