Article View: borland.public.jbuilder.java.language
Article #17236Re: Garbage Collection ... Urgent..
From: Arumugam
Date: Mon, 07 Dec 1998 00:00
Date: Mon, 07 Dec 1998 00:00
132 lines
5248 bytes
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> Thanks for your reply..
<BR> Here I will explain you with example..
<BR> Eg.,
<BR> public class XFrame extends DecoratedFrame
<BR> {
<BR> static int a+1;
<BR> Vector Xinfo = new Vector();
<BR> static Vector Display =
new Vector()
<P> public XFrame()
<BR> {
<BR>
try {
<BR>
jbInit();
<BR>
}
<BR>
catch(Exception e) {
<BR>
e.printStackTrace();
<BR>
}
<BR> }
<P> private void jbInit() throws
Exception
<BR> {
<BR>
Here do all the process of filling the vector table....reading the information
from the file...
<BR> }
<P> protected void this_windowClosed(WindowEvent
e)
<BR> {
<BR>
if (Xinfo.size() > 0)
<BR>
Xinfo.removeAllElements();
<BR>
if (Display.size() > 0)
<BR>
Display.removeAllElements();
<BR> }
<BR> }
<P> 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.
<BR> Also the same problem with the static vector tables...
<BR> I have lot like that..!!
<P> Thanks and Regards
<P> Arumugam
<PRE>--
B. Arumugam
Mitsubishi Space Software, JAPAN.
Phone ; +81-467-47-6708
E-Mail : arumugam@kbo.mss.co.jp</PRE>
</HTML>
--------------22145722EC1005D22DEA986E--
Technical Details
Message-ID:
<366B2D22.17689D9@kbo.mss.co.jp>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> <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