|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Vincent Lin
|
Mar 30, 2007 - 2:59 AM
|
Dear Sir, I get a error message while program exit, As bellow, ------------------------------------------------------------------------------------------- Unhandled exception at 0x009ea9e1 (ProfUIS264ud.dll) in ProfUIS_Controls-ud.exe: 0xC0000005: Access violation reading location 0x027c62f4. ------------------------------------------------------------------------------------------- I have try to reduce the one class members of my program , the message is not appear anymore. so, is there constrain for class members number ?
|
|
Vincent Lin
|
Apr 2, 2007 - 2:33 AM
|
Dear Suhai, My program is dialog-based , and got a error message as below, ’CExtHookSink::RemoveAllWndHooks’ : illegal call of non-static member function
|
|
Vincent Lin
|
Apr 1, 2007 - 7:54 PM
|
Dear Suhai, the problem still persists. by the way, the program is broken in file "afxtempl.h" AFX_INLINE INT_PTR CArray<TYPE, ARG_TYPE>::GetSize() const { return m_nSize; }
|
|
Technical Support
|
Apr 2, 2007 - 8:00 AM
|
Would you send us your project so we can check it on our side?
|
|
Suhai Gyorgy
|
Apr 2, 2007 - 1:58 AM
|
Sorry I forgot, if you are using the ProfUIS customization subsystem, you need to add another line as well: // this line is needed if the CMainFrame class is derived from the CExtCustomizeSite class CExtCustomizeSite::RemoveAllWndHooks(); // m_wndMenuBar.RemoveAllWndHooks(); ... // other codes of CMainFrame::DestroyWindow
|
|
Vincent Lin
|
Mar 30, 2007 - 5:15 AM
|
the call stack is below,
> ProfUIS264ud.dll!CArray<CExtHookSink *,CExtHookSink *>::GetSize() Line 279 + 0x11 bytes C++ ProfUIS264ud.dll!CExtHookSink::HookChains_t::HookChainsWindowProc(unsigned int nMessage=0x00000082, unsigned int & wParam=0x00000000, long & lParam=0x00000000) Line 239 + 0xb bytes C++ ProfUIS264ud.dll!CExtHookSink::HookChains_t::g_HookWndProc(HWND__ * hWnd=0x01a015fe, unsigned int nMessage=0x00000082, unsigned int wParam=0x00000000, long lParam=0x00000000) Line 287 + 0x14 bytes C++ user32.dll!77d18734() [Frames below may be incorrect and/or missing, no symbols loaded for user32.dll] user32.dll!77d1d05b() user32.dll!77d1b4c0() user32.dll!77d1dabd() ntdll.dll!7c92eae3() user32.dll!77d1daf6() mfc80ud.dll!CWnd::DestroyWindow() Line 993 + 0xd bytes C++ ProfUIS264ud.dll!CExtResDlg::_DoModalImpl() Line 6080 + 0xf bytes C++ ProfUIS264ud.dll!CExtResDlg::DoModal() Line 6001 + 0x12 bytes C++ ProfUIS_Controls-ud.exe!CMainApp::InitInstance() Line 83 + 0xe bytes C++ mfc80ud.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, wchar_t * lpCmdLine=0x00020ac8, int nCmdShow=0x00000001) Line 37 + 0xd bytes C++ ProfUIS_Controls-ud.exe!wWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, wchar_t * lpCmdLine=0x00020ac8, int nCmdShow=0x00000001) Line 29 C++ ProfUIS_Controls-ud.exe!__tmainCRTStartup() Line 578 + 0x35 bytes C ProfUIS_Controls-ud.exe!wWinMainCRTStartup() Line 403 C kernel32.dll!7c816fd7()
|
|
Suhai Gyorgy
|
Mar 30, 2007 - 6:50 AM
|
Support’s answer in another thread about this: Please add the following line at the very top of CMainFrame::DestroyWindow() and let us know if the problem persits
m_wndMenuBar.RemoveAllWndHooks();
|
|
Suhai Gyorgy
|
Mar 30, 2007 - 5:07 AM
|
I doubt there is a constraint for number of class members. It would help a lot if you could post the call stack when the exception occurs.
|
|