Friday, December 10, 2010

Windbg Debugging Scenario (1): Finding un-disposed objects

 

Use !finalizequeue to find all disposible objects, then use !gcroot to check whether they are orphan, then dump the orphaned objects, in most case, developers will define some private flags like _IsDisposed or _IsClosed, if already orphaned, should be true.

 

generally, the steps can be completed by PowerDbg scripts.

No comments:

Post a Comment