Print Page | Close Window

Problem with multiple application instances

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=16498
Printed Date: 28 June 2024 at 8:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with multiple application instances
Posted By: Pedro
Subject: Problem with multiple application instances
Date 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?





Replies:
Posted By: juancarlos
Date Posted: 05 April 2010 at 3:12am
Some problem here, do you have any progress solving it?
thank you



Posted By: Pedro
Date Posted: 07 April 2010 at 11:40am
yes, I have solve the problem using:
XTPSkinManager()->SetAutoApplyNewThreads(FALSE); 



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