Print Page | Close Window

Problem with LoadSkin function

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=10514
Printed Date: 22 November 2024 at 1:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with LoadSkin function
Posted By: compvis
Subject: Problem with LoadSkin function
Date Posted: 06 May 2008 at 2:46am
Hello everyone !
 
I use Visual C++ 2005 to build my project. I call LoadSkin function as below in my contructor:
 

XTPSkinManager()->LoadSkin(_T("C:\\Codejock Software\\MFC\\Xtreme ToolkitPro v11.2.2\\Bin\\vc80\\styles\\Office2007.cjstyles"),_T("NormalBlue.ini"));

then in Output window displays this message:

"First-chance exception at 0x7c81eb33 in Measuring.exe: Microsoft C++ exception: COleException at memory location 0x0012eac8.."

If i remove LoadSkin function, my program runs normally. I don't know why. Pls help me !
 
Thanks


-------------
I love ToolkitPro, Suite Pro ! Thanks Codejock !



Replies:
Posted By: Oleg
Date Posted: 06 May 2008 at 2:56am
Hi,
 
Do you see same message when you run our sample ? Maybe you can isolate what code gives you this message ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: compvis
Date Posted: 07 May 2008 at 12:24am

Thanks, Oleg !

I didn't see this message in your sample.

I use Xtreme Toolkit wizard to create project and set build mode is Release.

I compared "Project properties" of two projects (your own and my own)and found that there are many differences.

i coudn't know how fix this message.

As i said, if i remove the call to LoadSkin function,  Output windows doesn't display this message.

You said that "Maybe you can isolate what code gives you this message" but apart from removing the call to LoadSkin function, i don't know what code i have to isolate.
 
Sorry, English is not my native language !
 
Thanks


-------------
I love ToolkitPro, Suite Pro ! Thanks Codejock !


Posted By: Oleg
Date Posted: 07 May 2008 at 1:28am
Hello,
 
If you have not very big project, send it to mailto:support@codejock.com - support@codejock.com - we will help to find it.
 
If you can't send it, trace it to find lines with problems.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Smucker
Date Posted: 07 May 2008 at 6:58pm
In order to break into the debugger when the exception actually occurs (rather than just seeing the trace in the Output window), use Debug - Exceptions, and check the Thrown box for CException. This might give you more information about what is happening.

You may also be able to add COleException as a C++ execption and break only on this, but I have not tried it.




Posted By: Tarmac
Date Posted: 15 February 2010 at 7:04am
Hello,

Has this problem been resolved?
If it has, could someone kindly direct me to the solution?

Cheers





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