![]() |
Exception on startup after upgrading to 13.1 |
Post Reply ![]() |
Author | |
steveinaustin2 ![]() Newbie ![]() Joined: 21 October 2009 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() Posted: 21 October 2009 at 2:43pm |
We upgraded from 10.1.1 to 13.1 and now get an exception on startup when we call ProcessShellCommand().
The actual exception is "The activation context being deactivated is not the most recently activated one." We're using VS 2005. The same code behaves normally with 10.1.1. I'm wondering if I missed some step in the upgrade process? Some property that needs to change? The exception essentially occurs whenever LoadFrame is called. In this case it's called by CXTPFrameWndBase::LoadFrame. Here is a snippet of our InitInstance() CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); ... CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CBlaDoc), RUNTIME_CLASS(CMainFrame), RUNTIME_CLASS(CBlaView)); AddDocTemplate(pDocTemplate); EnableShellOpen(); RegisterShellFileTypes(TRUE); ... if (!ProcessShellCommand(cmdInfo)) // <<< UNHANDLED EXCEPTION!! { ClearSplash(); return FALSE; } m_pMainWnd->ShowWindow(SW_SHOW); m_pMainWnd->UpdateWindow(); ... |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
what code do you have in OnCreate ? Try remove some parts of that code while problem not disappear.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
artsd ![]() Groupie ![]() Joined: 07 January 2007 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
Sounds like a SxS problem I had. Make sure all modules you link together (Codejock and your own) are compiled with the same exact version of C++, MFC, CRT, etc. You if have external intermediate manifest files, you can look in there to see the library versions that were used for the compile. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |