Monthly Archives: January 2011

AfxIsValidAddress (and Others) Don’t Work as Advertised

MFC exposes a some memory debugging facilities such as AfxIsValidAddress, which (for debug builds) supposedly – Tests any memory address to ensure that it is contained entirely within the program’s memory space. Or does it?   AfxIsValidAddress only delegates the call … Continue reading

Posted in MFC, Win32 | Leave a comment

Child Breakpoints in Visual Studio

You often see in the breakpoints window that certain breakpoints are expandable: These are called child breakpoints, and are a strong contender to the title of most poorly documented feature of VS.  According to MSDN, child breakpoints occur – …when … Continue reading

Posted in Debugging, Visual Studio | 1 Comment