Bug 338493

Summary: Provide a tool for detection and debugging of window handle leaks
Product: [Eclipse Project] Platform Reporter: Sergey Prigogin <eclipse.sprigogin>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: ericwill, remy.suen
Version: 3.6.1Keywords: helpwanted, triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Sergey Prigogin CLA 2011-02-28 19:17:26 EST
Window handle leaks can be introduced due to missing dispose() calls. Unfortunately, it's much easier to introduce a leak than to find it. Bug 333286 illustrates a case when a window handle leak caused a severe performance issue in an unrelated piece of Eclipse functionality.

SWT should provide a tool for debugging window leaks. Such tool could maintain two maps between window handles and SWT windows, one current and one historical. From time to time the tool would search for orphaned handles. The orphaned handles would then be mapped to windows that used to own them.
Comment 1 Eric Williams CLA 2019-04-05 09:30:57 EDT
Patches are welcome.