Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Closing a view creates memory leak
Closing a view creates memory leak [message #1469803] Tue, 11 November 2014 17:45 Go to next message
Eclipse UserFriend
I am running an RCP application with E4 compatibility layer. I am using RCP 4.3 without explicitly using most of the E4 things. My problem appears on windows but I don't think it is OS dependent.

When I close a view using the "x" symbol on the GUI, the dispose method of this view is called.
However a reference to this view stays in the system and prevents freeing the memory that this view claims, which leads to a memory leak in my system.
I have looked up the problem with the Memory Analyzer and it says that the only reference to the ViewPart is held by org.eclipse.ui.internal.e4.compatibility.CompatibilityView.
It is held by the wrapped field.
I am new to memory leak analysis so in case I misinterpret: The memory analyzer at least says that the Compatibility view is the only first element on the path to GC roots.

I am not using a second perspective that keeps the view open.

Does anyone know if this is a problem on my side or within Eclipse and how to overcome it?
Re: Closing a view creates memory leak [message #1470382 is a reply to message #1469803] Wed, 12 November 2014 04:43 Go to previous message
Eclipse UserFriend
I think this is similar to Eclipse Bug 436225.


Previous Topic:How to get IFolder of an IProject?
Next Topic:how to make PropertySheetViewer as selection provider ?
Goto Forum:
  


Current Time: Sat Jul 05 12:34:34 EDT 2025

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

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

Back to the top