COM objects that don’t have the expected lifetime can cause chaos when combined with .NETs garbage collection system.
Tag Archives: Debugging
Don’t do anything in DllMain… Please
Thinking of adding some code to your DLLs DllMain function? STOP!
Posted in Debugging, Software Development, Uncategorized, Windows Also tagged c++, COM, dll, win32 Leave a comment
Pinned DataTips in Visual Studio 2010 Beta 2
I’ve just noticed a nice little feature in Visual Studio 2010 Beta 2: pinned DataTips. Values displayed in the debugger as you hover over a variable can now be pinned in place and remain aligned with the source. They can even have annotations added… Tasty!
WinDbg !locks command broken
It seems that the extremely useful !locks command is broken in 6.11.1.40x, the current and previous release of WinDbg from the debugging tools for Windows.
You’ll get errors like:
0:007> !locks
NTSDEXTS: Unable to resolve ntdll!RTL_CRITICAL_SECTION_DEBUG type
NTSDEXTS: Please check your symbols
The suggested solution seems to be to roll-back to version 6.10.3.233, available from here, or you can just [...]
