I am testing program in Debug Mode, the program seem fine because It has ran well for over 12 hours. But this morning, The program crashed, the I saw the CallStack, here is the last break point:
And here are call stacks:Quote:
CWnd* PASCAL CWnd::FromHandlePermanent(HWND hWnd)
{
CHandleMap* pMap = afxMapHWND();
CWnd* pWnd = NULL;
if (pMap != NULL)
{
// only look in the permanent map - does no allocations
pWnd = (CWnd*)pMap->LookupPermanent(hWnd);
ASSERT(pWnd == NULL || pWnd->m_hWnd == hWnd); (WINCORE.CPP line 304)Program crashes here because:
pWnd = 0x0146c2e8 , hWnd = 0x002107c8 and pWnd->m_hWnd = 0x00000036
}
return pWnd;
}
CWnd::FromHandlePermanent(HWND__ * 0x002107c8) line 304 + 32 bytes
CWnd::SendMessageToDescendants(HWND__ * 0x001306c4, unsigned int 126, unsigned int 32, long 67110144, int 1, int 1) line 2302 + 9 bytes
CWnd::SendMessageToDescendants(HWND__ * 0x003d01a8, unsigned int 126, unsigned int 32, long 67110144, int 1, int 1) line 2320
CWnd::SendMessageToDescendants(unsigned int 126, unsigned int 32, long 67110144, int 1, int 1) line 146 + 32 bytes
CWnd::OnDisplayChange(unsigned int 32, unsigned int 32) line 2965
CWnd::OnWndMsg(unsigned int 126, unsigned int 32, long 67110144, long * 0x00128c08) line 1815 + 17 bytes
CWnd::WindowProc(unsigned int 126, unsigned int 32, long 67110144) line 1585 + 30 bytes
CDDSCenterDlg::WindowProc(unsigned int 126, unsigned int 32, long 67110144) line 612
AfxCallWndProc(CWnd * 0x0012dbc4 {CDDSCenterDlg hWnd=???}, HWND__ * 0x003d01a8, unsigned int 126, unsigned int 32, long 67110144) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x003d01a8, unsigned int 126, unsigned int 32, long 67110144) line 368
AfxWndProcBase(HWND__ * 0x003d01a8, unsigned int 126, unsigned int 32, long 67110144) line 220 + 21 bytes
USER32! 77d43a50()
I know this is difficult to find cause(s) with this information. Do you ever met this error, and how to solve it. If not, do you have any ideas round this error: possible cause(s). I checked memory leak and memory overwritting carefully, but it may be my mistake. Thanks for any helps.
