The following code wasted 20 minutes of my time... Find the BUG!
// m_DEBUGFILE is in the class header as a CFile*
m_DEBUGFILE = new CFile();
if ( !m_DEBUGFILE->Open( pszFileName, CFile::modeCreate | CFile::modeNoTruncate |
CFile::modeReadWrite ), &fileException )
m_DEBUGFILE = NULL;
CString msg = "START DEBUGGING";
-- Thanks to microsoft for their wonderful API docs: