🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Garbage Collection ... Urgent..

#17236
From: Arumugam
Date: Mon, 07 Dec 1998 00:00
132 lines
5248 bytes
--------------22145722EC1005D22DEA986E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Steve,
    Thanks for your reply..
    Here I will explain you with example..
    Eg.,
    public class XFrame extends DecoratedFrame
    {
        static int a+1;
        Vector Xinfo = new Vector();
        static Vector Display = new Vector()

        public XFrame()
        {
            try {
                jbInit();
            }
            catch(Exception e) {
                e.printStackTrace();
            }
        }

        private void jbInit() throws Exception
        {
                Here do all the process of filling the vector table....reading
the information from the file...
        }

        protected void this_windowClosed(WindowEvent e)
        {
            if (Xinfo.size() > 0)
                Xinfo.removeAllElements();
            if (Display.size() > 0)
                Display.removeAllElements();
        }
    }

    In the above code, I have a static variable which is set to 1 initially and
while executing the program, if I change the value to 3 or 4, then while
restarting, it hold the latest value... but no the initial value..  Please let
me know how to rest the static value.
    Also the same problem with the static vector tables...
    I have lot like that..!!

    Thanks and Regards

    Arumugam

--
B. Arumugam
Mitsubishi Space Software, JAPAN.
Phone ; +81-467-47-6708
E-Mail : arumugam@kbo.mss.co.jp



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

<HTML>
Hi Steve,
<BR>&nbsp;&nbsp;&nbsp; Thanks for your reply..
<BR>&nbsp;&nbsp;&nbsp; Here I will explain you with example..
<BR>&nbsp;&nbsp;&nbsp; Eg.,
<BR>&nbsp;&nbsp;&nbsp; public class XFrame extends DecoratedFrame
<BR>&nbsp;&nbsp;&nbsp; {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static int a+1;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Vector Xinfo = new Vector();
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static Vector Display =
new Vector()

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public XFrame()
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
try {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jbInit();
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
catch(Exception e) {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
e.printStackTrace();
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private void jbInit() throws
Exception
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Here do all the process of filling the vector table....reading the information
from the file...
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected void this_windowClosed(WindowEvent
e)
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
if (Xinfo.size()&nbsp;> 0)
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Xinfo.removeAllElements();
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
if (Display.size() > 0)
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Display.removeAllElements();
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
<BR>&nbsp;&nbsp;&nbsp; }

<P>&nbsp;&nbsp;&nbsp; In the above code, I have a static variable which
is set to 1 initially and while executing the program, if I change the
value to 3 or 4, then while restarting, it hold the latest value... but
no the initial value..&nbsp; Please let me know how to rest the static
value.
<BR>&nbsp;&nbsp;&nbsp; Also the same problem with the static vector tables...
<BR>&nbsp;&nbsp;&nbsp; I have lot like that..!!

<P>&nbsp;&nbsp;&nbsp; Thanks and Regards

<P>&nbsp;&nbsp;&nbsp; Arumugam
<PRE>--&nbsp;
B. Arumugam
Mitsubishi Space Software, JAPAN.&nbsp;
Phone ; +81-467-47-6708
E-Mail : arumugam@kbo.mss.co.jp</PRE>
&nbsp;</HTML>

--------------22145722EC1005D22DEA986E--
Technical Details
Message-ID: <366B2D22.17689D9@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> <3664CF03.A1DDC7D7@kbo.mss.co.jp> <370be1c9.687673616@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/07
Message-ID: <366B2D22.17689D9@kbo.mss.co.jp>
X-Deja-AN: 419467970
References: <366268E8.72DDAB2A@spiral.mik.mss.co.jp> <36cbbfab.547846374@90.0.0.40> <3664CF03.A1DDC7D7@kbo.mss.co.jp> <370be1c9.687673616@90.0.0.40>
Content-Type: multipart/alternative; boundary="------------22145722EC1005D22DEA986E"
Organization: Mitsubishi Space Software, JAPAN
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language