Bug 338493 - Provide a tool for detection and debugging of window handle leaks
Summary: Provide a tool for detection and debugging of window handle leaks
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, triaged
Depends on:
Blocks:
 
Reported: 2011-02-28 19:17 EST by Sergey Prigogin CLA
Modified: 2019-04-05 09:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.