Bill Roper (billroper) wrote,
Bill Roper

Yet Another MFC Bug

This is cute. In Visual Studio 2005, if you use CString::FormatMessage() in a way that generates an empty string, it throws a CMemoryException indicating that you're out of memory. Hilarity ensues.

What you should get is a nice harmless null-terminated empty string.

And maybe you do in Visual Studio 2008. But I'm not holding my breath.
Tags: musings, tech, work

  • Let's Try That Again

    For a variety of reasons, today ended up being moderately annoying. This is despite having made good progress on a number of fronts, so maybe I just…

  • Gentlemen, Be Seated

    I appear to collect office chairs. A few years ago, I bought a new chair for the studio in the after-Christmas sales. It is a big and tall Sealy…

  • Scheduling

    We got the heads up yesterday about the upcoming schedule for our kitchen renovation. The cabinet installers will be back on Saturday to finish up…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded