Re: Jdialog not getting garbage collected
- From: Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 09:07:18 -0700
sarath wrote:
Hi ,
I am having a trouble in the Load and stress testing phase. I have
a Child class of JDialog instance which does not get garbage collected
no matter what I do. I have freed all the listeners, made the instance
variable to null(which are actually garbage collected), made all the
instaces that are coming and going out of the Dialog class.
and done,
this.removeAll();
getRootPane().remove(getContentPane());
super.dispose();
this.dispose();
disposed the dialog, set the instance to null. Tried everything that
is mentioned in the web but when it is an instance of the JDialog, it
does not get garbage collected. I have seen that this is mentioned as
bug in many Java releases prior to 1.2. Is this still a problem or
have they fixed it?
I am using JDK 1.5.0 in Windows 2000. I was able to see the un-
claimed memory using the Optimize it.
Please reply. Any comments are welcome.
Regards
Sarath
If you dispose it and there are no more references to it the JDialog should get GCd eventually.
--
Knute Johnson
email s/nospam/knute/
.
- References:
- Jdialog not getting garbage collected
- From: sarath
- Jdialog not getting garbage collected
- Prev by Date: Jdialog not getting garbage collected
- Next by Date: Re: test imap and pop3
- Previous by thread: Jdialog not getting garbage collected
- Index(es):