OS Specific Crash - Application crashes in Vista OS , Windows 2008 32/64 bit. Application doesn't crash in Win2003
-
Hi, we have cutomized TreeView control. If we embed this tree view control on a window , then applicaiton is crashing in Vista OS,Win2008 32bit/64bit. When the same tree view control is embeded on a window on Win2003 OS then application is not crashing. This looks to be OS specific issue. I had attached Debug Diagnostics with the applicaiton. The below is call stack generated by debug diagnostics. ntdll!RtlDeactivateActivationContext+14e 002d07c8 18850022 0012c2c4 kernel32!DeactivateActCtx+31 00000000 18850022 0214cce8 dmocx!CTVCtrl::OnDraw+28 0012c308 0012c2f8 0012c2e8 mfc42u!COleControl::OnPaint+11f 00000000 00b5ad05 00000000 mfc42u!CWnd::OnWndMsg+43c 0000000f 00000000 6ce3cdf0 mfc42u!CWnd::WindowProc+2e 0000000f 00000000 00000000 mfc42u!COleControl::WindowProc+12f 0000000f 00000000 00000000 mfc42u!AfxCallWndProc+b5 0214cce8 00000000 0000000f mfc42u!AfxWndProc+3e 001102d8 0000000f 00000000 dmocx!AfxWndProcDllStatic+2e 001102d8 0000000f 00000000 user32!InternalCallWinProc+23 73c33094 001102d8 0000000f user32!UserCallWinProcCheckWow+14b 0035c8bc 73c33094 001102d8 user32!DispatchClientMessage+da 01346e48 0000000f 00000000 user32!__fnDWORD+24 0012c648 00000018 0012c6c4 ntdll!KiUserCallbackDispatcher+2e 76c14566 00160542 00000060 user32!NtUserCallHwndLock+c 00160542 00000060 0012c690 user32!UpdateWindow+32 00160542 0214aaec 00000000 ocxgot!ocxMethod+486e 002602ac 0012c6b0 00000000 ocxgot!ocxMethod+7ee9 0000005a 0000003c 000000d2 ocxgot!ocxMethod+7514 0214aad8 190106a0 0000005a ocxgot!WWDLLDrawRuntime+7c 0214aad8 190106a0 0000005a view!PasswordEdit+248a 190106a0 0000005a 0000003c Any help would be appreciated. Thanks in advance.
-
Hi, we have cutomized TreeView control. If we embed this tree view control on a window , then applicaiton is crashing in Vista OS,Win2008 32bit/64bit. When the same tree view control is embeded on a window on Win2003 OS then application is not crashing. This looks to be OS specific issue. I had attached Debug Diagnostics with the applicaiton. The below is call stack generated by debug diagnostics. ntdll!RtlDeactivateActivationContext+14e 002d07c8 18850022 0012c2c4 kernel32!DeactivateActCtx+31 00000000 18850022 0214cce8 dmocx!CTVCtrl::OnDraw+28 0012c308 0012c2f8 0012c2e8 mfc42u!COleControl::OnPaint+11f 00000000 00b5ad05 00000000 mfc42u!CWnd::OnWndMsg+43c 0000000f 00000000 6ce3cdf0 mfc42u!CWnd::WindowProc+2e 0000000f 00000000 00000000 mfc42u!COleControl::WindowProc+12f 0000000f 00000000 00000000 mfc42u!AfxCallWndProc+b5 0214cce8 00000000 0000000f mfc42u!AfxWndProc+3e 001102d8 0000000f 00000000 dmocx!AfxWndProcDllStatic+2e 001102d8 0000000f 00000000 user32!InternalCallWinProc+23 73c33094 001102d8 0000000f user32!UserCallWinProcCheckWow+14b 0035c8bc 73c33094 001102d8 user32!DispatchClientMessage+da 01346e48 0000000f 00000000 user32!__fnDWORD+24 0012c648 00000018 0012c6c4 ntdll!KiUserCallbackDispatcher+2e 76c14566 00160542 00000060 user32!NtUserCallHwndLock+c 00160542 00000060 0012c690 user32!UpdateWindow+32 00160542 0214aaec 00000000 ocxgot!ocxMethod+486e 002602ac 0012c6b0 00000000 ocxgot!ocxMethod+7ee9 0000005a 0000003c 000000d2 ocxgot!ocxMethod+7514 0214aad8 190106a0 0000005a ocxgot!WWDLLDrawRuntime+7c 0214aad8 190106a0 0000005a view!PasswordEdit+248a 190106a0 0000005a 0000003c Any help would be appreciated. Thanks in advance.
-
Debug Diagnostics also shows the below information the assembly instruction at ntdll!RtlDeactivateActivationContext+14e in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused an unknown exception (0xc015000f) on thread 0
Hi, This error is related to SxS and Isolation Awareness. The callstack you posted appears to contain an ActiveX DLL. Do both depend on the MFC Libraries? If so... do they depend on the same version of MFC or different versions? Best Wishes, -David Delaune
-
Hi, This error is related to SxS and Isolation Awareness. The callstack you posted appears to contain an ActiveX DLL. Do both depend on the MFC Libraries? If so... do they depend on the same version of MFC or different versions? Best Wishes, -David Delaune
Thanks for the information. In one of your previous replies to the similar problem you have suggested to include afxAmbientActCtx = FALSE; in the Initinstance function. I have been trying to use this flag in Initinstance of our application. But I am getting this error "error C2065: 'afxAmbientActCtx' : undeclared identifier" Can you suggest what has to be added . Thanks..
-
Thanks for the information. In one of your previous replies to the similar problem you have suggested to include afxAmbientActCtx = FALSE; in the Initinstance function. I have been trying to use this flag in Initinstance of our application. But I am getting this error "error C2065: 'afxAmbientActCtx' : undeclared identifier" Can you suggest what has to be added . Thanks..
Hi, I believe the afxAmbientActCtx is only available in CWinApp/CWinAppEx applications. It is actually equal to the the AfxGetModuleState()->m_bSetAmbientActCtx. This is probably not what you need.
V K 2 wrote:
Can you suggest what has to be added .
Well you did not answer my questions. I asked them for a reason. So now I have to make a guess as to how to fix your ActiveX DLL. Anyway if your ActiveX DLL exposes MFC functions then I would recommend protecting them with a call to the AFX_MANAGE_STATE[^] macro at the top of your exported function. The error you are recieving is related to Activation Contexts[^] so you will also need to double check that your manifest file is correct. Best Wishes, -David Delaune