Showing posts with label eclipse handlers leak. Show all posts
Showing posts with label eclipse handlers leak. Show all posts

Wednesday, November 16, 2011

Search reasource leaks in Eclipse

here is instruction how is possible find a reason of resources leaks:
1) is necessary to install Sleak plug-in for Eclipse via -> Help -> Insrall New Software -> update site:
http://www.eclipse.org/swt/updates/3.8
2) close Eclipse;
3) from the file eclipse_3.7\plugins\org.eclipse.ui_??.jar copy .options into Eclipse folder and setup:
org.eclipse.ui/debug=true
org.eclipse.ui/trace/graphics=true
4) create eclipse.bat into Eclipse folder:
eclipse.exe -clean -debug
5) use eclipse.bat for eclipse (for HP Studio) start;
6) open the Sleak view: Window -> Show View -> Other ... -> SWT Tools -> Sleak;
now is possible to take snapshot of allocated resources and take a difference between allocated resources - so it will be possible to find a leak reason

P.S.:
main reference to SWT Development Tools:
http://www.eclipse.org/swt/tools.php