All of the sudden my code started giving me Assert Errors everytime I delete a CDialog object created with new. It didn't used to do that and I can't figure out what has changed. For example the following code gives me an Assert error on the delete line:
pEditStringDlg = new CEditStringDlg;
pEditStringDlg->DoModal("Testing...", "Testing...", &m_TempDirectory);
Of course if I do not use delete the CDialog is dumped at program close. Any ideas why this is giving me this error?