Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Problem with multiple application instances
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with multiple application instances

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


Joined: 15 February 2010
Location: Spain
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pedro Quote  Post ReplyReply Direct Link To This Post Topic: Problem with multiple application instances
    Posted: 23 March 2010 at 2:00pm
I'm using SkinFramework to modify my application look. I'm using Office2007.cjstyles succesfully.
The problem appears when I try to run a second instance of my application: It crash.
The message I get is:

Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call.  This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

The module is identified as: ToolkitPro1321vc90d.dll

The debuger is stopped in the return of "DWORD WINAPI CXTPSkinManagerApiHook::ThreadProcHook(LPVOID lpThreadData)".
The lines of code I'm using in my application are:

    XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics | xtpSkinApplyMenus);
    XTPSkinManager()->LoadSkin("Office2007.cjstyles");

I'm calling this functions from the CMainFrame constructor, but I have change the calls to the Initinstance proc, and the same happens.

Any help?


Back to Top
juancarlos View Drop Down
Newbie
Newbie


Joined: 05 April 2010
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote juancarlos Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2010 at 3:12am
Some problem here, do you have any progress solving it?
thank you

Back to Top
Pedro View Drop Down
Newbie
Newbie


Joined: 15 February 2010
Location: Spain
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pedro Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2010 at 11:40am
yes, I have solve the problem using:
XTPSkinManager()->SetAutoApplyNewThreads(FALSE); 
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.141 seconds.