Junfeng Zhang's Windows Programming NotesWin32, Fusion, CLR, .Net Framework, and othersUse !htrace to debug handle leak- April 21, 2008 Windbg Debuggers !htrace extension is very handy to debug handle leak. The process essentially boils down to the following simple steps: 1. Enable trace 2. Take a snapshot 3. Run scenario 4. Show the diff On step 4, !htrace will show all the extra opened handles after the last snapshot, along with the callstack if available. This greatly helps to debug.http://blogs.msdn.com/junfeng/archive/2008/04/21/use-htrace-to-debug-handle-leak.aspx |