Print Page | Close Window

Exception on startup after upgrading to 13.1

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15410
Printed Date: 21 June 2025 at 9:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Exception on startup after upgrading to 13.1
Posted By: steveinaustin2
Subject: Exception on startup after upgrading to 13.1
Date 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();

...





Replies:
Posted By: Oleg
Date 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


Posted By: artsd
Date 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.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net