Wow, it’s been a ridiculously long time since I’ve blogged. I think it’s time I put something up just to break the curse, and this seemed like a good, and hopefully useful, place to start. Time to polish some of these dusty drafts into published gems. Ever been in that situation where you (or someone [...]
There’s a bug in 32-bit .NET 2.0 where assemblies are loaded twice, wasting valuable address space.
How can you tell if your code is being called from within DllMain? You could use an undocumented function from ntdll.dll.
Interop assemblies containing certain constructs will cause a BadImageFormatException in .NET 4.0
Heap allocation stack traces are useless when using certain versions of the MSVC runtime. Is it possible to modify and rebuild MSVCR80 to avoid this?
COM objects that don’t have the expected lifetime can cause chaos when combined with .NETs garbage collection system.
Thinking of adding some code to your DLLs DllMain function? STOP!
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!
How do you find the unmanaged COM object that’s being referenced by a .NET object?
(I had problems with WordPress choking on this long post, so I’ve split it into 2 parts. The first part is here. This is the second part).