Problem with multiple application instances |
Post Reply |
Author | |
Pedro
Newbie Joined: 15 February 2010 Location: Spain Status: Offline Points: 3 |
Post Options
Thanks(0)
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? |
|
juancarlos
Newbie Joined: 05 April 2010 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Some problem here, do you have any progress solving it?
thank you |
|
Pedro
Newbie Joined: 15 February 2010 Location: Spain Status: Offline Points: 3 |
Post Options
Thanks(0)
|
yes, I have solve the problem using:
XTPSkinManager()->SetAutoApplyNewThreads(FALSE); |
|
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 |