Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Garbage collection of views
Garbage collection of views [message #1383914] Tue, 27 May 2014 07:29 Go to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 250
Registered: July 2009
Location: Graz, Austria
Senior Member
When trying to find a Memory leak in my application I stumbled over a strange behavior of eclipse:

When I open a view (a 3.x style view, using the views Extension Point and inheriting from ViewPart) and retrieve a Memory dump I can see 1 instance of this view. We did not expect anything else so far.

Now I close the view and retrieve another heap dump. The view instance is still there occupying Memory. The dump shows references from WorkbenchPage and PartService.

After reopening and closing the view a second time, I get 2 pending instances.

The view implementation itself is empty:
public class SampleView extends ViewPart {

	public SampleView() {}

	@Override
	public void createPartControl(Composite parent) {}

	@Override
	public void setFocus() {}
}


Any thoughts on this?
Re: Garbage collection of views [message #1384670 is a reply to message #1383914] Fri, 30 May 2014 08:01 Go to previous message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 250
Registered: July 2009
Location: Graz, Austria
Senior Member
Raised bug 436225 to track this issue.
Previous Topic:JUnit in Kepler - how to put in a target file
Next Topic:How to dynamically fill a parameter to a popup menu
Goto Forum:
  


Current Time: Tue Mar 19 10:06:48 GMT 2024

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

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

Back to the top