|
|
|
|
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 |
|
Saurabh
|
Sep 6, 2010 - 3:38 AM
|
Hi,
I am using ProfUIS254 and with VS2005 build and my MDI application crashes when closed. I am getting the following error -
Unhandled exception at 0x77cf4391 (ntdll.dll) in sample.exe: 0xC015000F: The activation context being deactivated is not the most recently activated one.
at line# 207 of ExtHook.cpp.
Here is the stack at the time of crash -
ntdll.dll!_RtlDeactivateActivationContext@8() + 0xa95e bytes kernel32.dll!_DeactivateActCtx@8() + 0x28 bytes mfc80.dll!AFX_MAINTAIN_STATE2::~AFX_MAINTAIN_STATE2() Line 66 C++ mfc80.dll!AfxWndProcBase(HWND__ * hWnd=0x000a03be, unsigned int nMsg=161, unsigned int wParam=20, long lParam=6816900) Line 411 + 0x26 bytes C++ user32.dll!_InternalCallWinProc@20() + 0x23 bytes user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes user32.dll!_CallWindowProcAorW@24() + 0x5e bytes user32.dll!_CallWindowProcA@20() + 0x1b bytes sample.exe!CExtHookSink::HookChains_t::HookChainsWindowProc(unsigned int nMessage=656318, unsigned int & wParam=20, long & lParam=6816900) Line 207 + 0x1b bytes C++ > sample.exe!CExtHookSink::HookChains_t::g_HookWndProc(HWND__ * hWnd=0x02593338, unsigned int nMessage=161, unsigned int wParam=20, long lParam=6816900) Line 248 C++ user32.dll!_InternalCallWinProc@20() + 0x23 bytes user32.dll!_UserCallWinProcCheckWow@32() + 0xb7 bytes user32.dll!_DispatchMessageWorker@8() + 0xed bytes user32.dll!_DispatchMessageA@4() + 0xf bytes sample.exe!CVbfxApp::PumpMessage() + 0xef bytes C++ sample.exe!CVbfxApp::MessageLoop() + 0x96 bytes C++ sample.exe!CVbfxApp::Run() + 0x31 bytes C++ mfc80.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00872daa, int nCmdShow=1) Line 47 + 0x7 bytes C++ sample.exe!__tmainCRTStartup() Line 578 + 0x1d bytes C kernel32.dll!@BaseThreadInitThunk@12() + 0x12 bytes ntdll.dll!___RtlUserThreadStart@8() + 0x27 bytes ntdll.dll!__RtlUserThreadStart@8() + 0x1b bytes
This occurs on opening seven tabs and closing the application. Could anyone suggest what possibly could be going wrong?
Thanks in advance.
|
|
Technical Support
|
Sep 6, 2010 - 6:22 AM
|
2.54 is quite an old version. It’s not tested with Windows Vista / 7. You can switch to the latest Prof-UIS version or try to turn off the context activation APIs usage inside MFC by invoking the following code during your app startup:
afxAmbientActCtx = FALSE;
|
|