I have an application using RichEdit 2.0 controls in a SDI FormView. When linked against the release version of the MFC library it crashes
on the pWndParent->m_pCtrlCont->AttachControlSite(this); call in
void CWnd::AttachControlSite(CHandleMap* pMap)
if (this != NULL && m_pCtrlSite == NULL)
// Determine if parent is an OLE control container
CWnd* pWndParent = (CWnd*)pMap->LookupPermanent(::GetParent(m_hWnd));
if (pWndParent != NULL && pWndParent->m_pCtrlCont != NULL)
// delegate through helper in COleControlSite
I compiled my program with debug information linked against the Release version of MFC and stepped into the crash and it occurs after a PumpMessage call deep within MFC :-( I am rather puzzled about this problem and would appreciate any suggestions to resolve this.
I already checked my message handlers for correct format so I dont think it is caused by any of my costum registered window messages...