Hi,
I have a Cdialog based modal dialog application that is crashing on exit in release only. I do nothing with the dialog except open it and then close it by using the "x" of windows. it's an mfc project using dynamically linked dlls.
The app is a global object, and a modal dialog is created in its initInstance.
the app crashes at the line delete m_pDaoState;(in afxstate.cpp)
The value of the pointer is invalid.. Access violation.
AFX_MODULE_STATE::~AFX_MODULE_STATE()
{
#ifndef
_AFX_NO_DAO_SUPPORT delete m_pDaoState;#endif
// clean up type lib cache map, if any if (m_pTypeLibCacheMap != NULL){
m_pTypeLibCacheMap->RemoveAll(&m_typeLibCache);
delete m_pTypeLibCacheMap;}
}
Can someone help me here ! I see this happening only in release.
Thanks
Nick.