Tag Archives: c++

Where’s my window?

Where’s my window gone? I’m sure I left it around here somewhere…

Posted in Windows | Also tagged , , , , , | 1 Comment

Beware of using stack-based COM objects from .NET

COM objects that don’t have the expected lifetime can cause chaos when combined with .NETs garbage collection system.

Posted in .NET, COM, Debugging, Software Development, WinDbg | Also tagged , , , , , | Leave a comment

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 , , , | Leave a comment

Comparing lambdas in C++ and F#

Lambdas in C++ and F#: compare and contrast.

Posted in F#, Software Development, Visual Studio | Also tagged | Leave a comment

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 [...]

Posted in Software Development, WinDbg, Windows | Also tagged , , , , | 2 Comments

Static libraries are Evil

In my opinion.
Why? Well, because it’s too easy to use them as an excuse for not defining your shared library interfaces properly.
The reason this is on my mind recently is that several hundred, yes, you heard that right, several hundred DLLs have been released by my group over the last, ooh, 10 years or so. [...]

Posted in COM, Excel, Rant, Software Development | Also tagged , | Leave a comment