Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Albireo » Memory leak
Memory leak [message #10989] Mon, 25 May 2009 07:43
Reto Urfer is currently offline Reto UrferFriend
Messages: 8
Registered: July 2009
Junior Member

I am using SwingControl on a page of a multi page editor in a RCP
application. I noticed that the Control derived from SwingControl is NOT
garbage collected. The result is that the user has to stop the application
after a certain time because it consumes to much memory. I reported already
a bug ( but got no

I could find two problems in the implementation of SwingControl:
1. The method handleDispose is missing the code
2. The method addRootPaneContainer contains the line
This line contains the reason why the the instance of MySwingComposite
not be garbage collected. Unfortunately i was not able to find a fix for
problem yet. (I commented this line temporarily out and then, together with
change in the handleDispose method the garbage collector was able to remove
instance of MySwingComposite from the heap!)

Anybody an idea why the frame can not be garbage collected as soon as the
applet has been added to it?

Previous Topic:Size-Calculation of Embedded Swing Controls in Dialogs
Next Topic:Memory leak
Goto Forum:

Current Time: Wed Oct 07 08:38:27 GMT 2015

Powered by FUDForum. Page generated in 0.01842 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software