Thinking of adding some code to your DLLs DllMain function? STOP!
Category Archives: Software Development
Don’t do anything in DllMain… Please
Programming is like a bad analogy
The joy of programming can be a difficult thing to describe. I take a look at some of the bizarre things people have compared it to.
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!
Comparing lambdas in C++ and F#
Lambdas in C++ and F#: compare and contrast.
FormatException in WPF DataBinding
A FormatException is generated by the WPF DataBinding diagnostics if the original exception text contains curly brackets.
The 7 signs your UI was created by a programmer
Programmers are notoriously bad at creating good user interfaces. How can you tell if your app was designed by a programmer? (Hint: it’s easy).
Getting IUnknown from __ComObject
How do you find the unmanaged COM object that’s being referenced by a .NET object?
Finding the largest free block of address space
I’ve been seeing problems recently with fragmented virtual address space. During the lifetime of a process, bits and pieces of memory are allocated throughout the 2GB 32-bit address space to such an extent that large contiguous blocks of free space are no longer available. If anything subsequently requires a large block of memory (like, for [...]
Diagnosing out of memory errors with VMMap – Part 2
(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).
