Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Exception on startup after upgrading to 13.1
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Exception on startup after upgrading to 13.1

 Post Reply Post Reply
Author
Message
steveinaustin2 View Drop Down
Newbie
Newbie


Joined: 21 October 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote steveinaustin2 Quote  Post ReplyReply Direct Link To This Post Topic: Exception on startup after upgrading to 13.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();

...


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 October 2009 at 6:31am
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
Back to Top
artsd View Drop Down
Groupie
Groupie


Joined: 07 January 2007
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote artsd Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2009 at 12:57pm

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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.051 seconds.