Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGrid - GridViewer - Memory Leaks
https://www.eclipse.org/forums/index.php/mv/msg/186374/591266/#msg_591266
I just installed the Sleak-plugin to watch the resource usage of my RCP
application. I use the grid viewer intensivly. I encountered a view
things right now.
1.) this.cellHeaderSelectionBackground = new Color (getDisplay(),cellSel):
this color is always created when a grid is instantiated. Wouldn't it
make sense to cache this color using the Jface-ImageRegistry?
2.) sizingGC = new GC(this):
this GC is used throught the whole grid in a couple of methods. When
opening views/editors containing a grid this GC gets never disposed as
long the views/editors remain open. What about creating a GC when it's
needed and dispose it afterwards?