Hello Oleg,
The only thing I have changed is that I have switched the project settings from dynamically linking the MFC dll to statically linking the MFC library. I have used Visual Studio .Net 2003.
The exception occures in line 597 of xtpcalendartheme.cpp (int nCount = m_arMembers.GetCount();). When I set a breakpoint on this line, the crash occures the second time when the line is passed at program start.
The call stack is:
> CalendarDemoD.exe!CXTPCalendarThemePart::RefreshMetrics(int bRefreshChildren=1) Zeile 597 + 0xe C++ CalendarDemoD.exe!CXTPCalendarTheme::CTOHeader::RefreshMetrics(int bRefreshChildren=1) Zeile 1479 C++ CalendarDemoD.exe!CXTPCalendarThemeOffice2007::CTOHeader::RefreshMetrics(int bRefreshChildren=1) Zeile 747 C++ CalendarDemoD.exe!CXTPCalendarThemePart::RefreshMetrics(int bRefreshChildren=1) Zeile 603 + 0xf C++ CalendarDemoD.exe!CXTPCalendarThemeOffice2007::RefreshMetrics(int bRefreshChildren=1) Zeile 572 C++ CalendarDemoD.exe!CXTPCalendarThemeOffice2007::CXTPCalendarThemeOffice2007() Zeile 331 C++ CalendarDemoD.exe!CCalendarDemoView::OnOfficeThemeChanged(int nTheme=6) Zeile 1298 + 0x36 C++ CalendarDemoD.exe!CCalendarDemoView::OnInitialUpdate() Zeile 549 + 0x12 C++ CalendarDemoD.exe!CWnd::OnWndMsg(unsigned int message=868, unsigned int wParam=0, long lParam=0, long * pResult=0x0012f9d4) Zeile 2023 C++ CalendarDemoD.exe!CWnd::WindowProc(unsigned int message=868, unsigned int wParam=0, long lParam=0) Zeile 1745 + 0x1e C++ CalendarDemoD.exe!AfxCallWndProc(CWnd * pWnd=0x012eaea8, HWND__ * hWnd=0x000b03d8, unsigned int nMsg=868, unsigned int wParam=0, long lParam=0) Zeile 241 + 0x1a C++ CalendarDemoD.exe!CWnd::SendMessageToDescendants(HWND__ * hWnd=0x000e03c8, unsigned int message=868, unsigned int wParam=0, long lParam=0, int bDeep=1, int bOnlyPerm=1) Zeile 2771 C++ CalendarDemoD.exe!CWnd::SendMessageToDescendants(unsigned int message=868, unsigned int wParam=0, long lParam=0, int bDeep=1, int bOnlyPerm=1) Zeile 155 + 0x20 C++ CalendarDemoD.exe!CFrameWnd::InitialUpdateFrame(CDocument * pDoc=0x012e5ad8, int bMakeVisible=1) Zeile 752 C++ CalendarDemoD.exe!CDocTemplate::InitialUpdateFrame(CFrameWnd * pFrame=0x012e5b70, CDocument * pDoc=0x012e5ad8, int bMakeVisible=1) Zeile 328 C++ CalendarDemoD.exe!CSingleDocTemplate::OpenDocumentFile(const char * lpszPathName=0x00000000, int bMakeVisible=1) Zeile 203 C++ CalendarDemoD.exe!CDocManager::OnFileNew() Zeile 854 C++ CalendarDemoD.exe!CWinApp::OnFileNew() Zeile 25 C++ CalendarDemoD.exe!_AfxDispatchCmdMsg(CCmdTarget * pTarget=0x00cf8180, unsigned int nID=57600, int nCode=0, void (void)* pfn=0x006babdc, void * pExtra=0x00000000, unsigned int nSig=53, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000) Zeile 89 C++ CalendarDemoD.exe!CCmdTarget::OnCmdMsg(unsigned int nID=57600, int nCode=0, void * pExtra=0x00000000, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000) Zeile 396 + 0x27 C++ CalendarDemoD.exe!CWinApp::ProcessShellCommand(CCommandLineInfo & rCmdInfo={...}) Zeile 27 + 0x1e C++ CalendarDemoD.exe!CCalendarDemoApp::InitInstance() Zeile 170 + 0xc C++ CalendarDemoD.exe!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00151f10, int nCmdShow=1) Zeile 39 + 0xb C++ CalendarDemoD.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00151f10, int nCmdShow=1) Zeile 25 C++ CalendarDemoD.exe!WinMainCRTStartup() Zeile 251 + 0x30 C kernel32.dll!7c816fd7() ntdll.dll!7c9206eb()
The exception is:
Unbehandelte Ausnahme bei 0x00938079 in CalendarDemoD.exe: 0xC0000005: Zugriffsverletzung-Leseposition 0x00000058.
I hope this will help you to locate the bug.
You're right, I should have posted it in the calendar control forum.
Kind Regards
Ingo
|