<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Application crash due to skin framework</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Visual C++ MFC : Application crash due to skin framework]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 10:52:37 +0000</pubDate>
  <lastBuildDate>Wed, 06 Oct 2010 03:39:26 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=17330</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Application crash due to skin framework : That would be an idea but, you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17330&amp;PID=60723&amp;title=application-crash-due-to-skin-framework#60723</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5760">varvaripavel</a><br /><strong>Subject:</strong> 17330<br /><strong>Posted:</strong> 06 October 2010 at 3:39am<br /><br />That would be an idea but, you cannot know the "BadLib.dll"; I mean, I could exclude a certain DLL (like "HP_Driver.dll") but there could always be a new one (like "Canon_Driver.dll")<br><br>I posted a better solution but the comment was not approved yet :P<br>]]>
   </description>
   <pubDate>Wed, 06 Oct 2010 03:39:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17330&amp;PID=60723&amp;title=application-crash-due-to-skin-framework#60723</guid>
  </item> 
  <item>
   <title><![CDATA[Application crash due to skin framework : Probably, your exe loads a dll/ocx...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17330&amp;PID=60722&amp;title=application-crash-due-to-skin-framework#60722</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 17330<br /><strong>Posted:</strong> 06 October 2010 at 3:25am<br /><br />Probably, your exe loads a dll/ocx that is not compatible with the skinning hook. Look in your "Output window" and see if a suspicious DLL (presumably with GUI) is loaded when printing. Then do the following:<DIV>&nbsp;</DIV><DIV>XTPSkinManager()-&gt;ExcludeModule("BadLib.dll");</DIV>]]>
   </description>
   <pubDate>Wed, 06 Oct 2010 03:25:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17330&amp;PID=60722&amp;title=application-crash-due-to-skin-framework#60722</guid>
  </item> 
  <item>
   <title><![CDATA[Application crash due to skin framework : I figure out to make a fix (not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17330&amp;PID=60551&amp;title=application-crash-due-to-skin-framework#60551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5760">varvaripavel</a><br /><strong>Subject:</strong> 17330<br /><strong>Posted:</strong> 28 September 2010 at 4:07pm<br /><br />I figure out to make a fix (not the best) for the problem:<br><br>void CXTPSkinManagerApiHook::InitializeHookManagement()<br>{<br>&nbsp;&nbsp; .........<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (XTPSkinManager()-&gt;GetAutoApplyNewThreads() == TRUE )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ADDHOOK("KERNEL32.DLL", LoadLibraryA);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ADDHOOK("KERNEL32.DLL", LoadLibraryW);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ADDHOOK("KERNEL32.DLL", LoadLibraryExA);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ADDHOOK("KERNEL32.DLL", LoadLibraryExW);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ADDHOOK("KERNEL32.DLL", GetProcAddress);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ADDHOOK("KERNEL32.DLL", GetModuleHandleA);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ADDHOOK("KERNEL32.DLL", CreateThread);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; ..................<br>}<br><br>So, the problem is due to one (or more from the hooks above)<br><br>You can reproduce it on Windows Vista or XP with the official drivers from HP LaserJet 1320 printers (I guess other HP drivers, too). Just try to repeat a few times the print preview / configure options in a default application with skins.<br><br>]]>
   </description>
   <pubDate>Tue, 28 Sep 2010 16:07:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17330&amp;PID=60551&amp;title=application-crash-due-to-skin-framework#60551</guid>
  </item> 
  <item>
   <title><![CDATA[Application crash due to skin framework : Hi,I have an application which...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17330&amp;PID=60478&amp;title=application-crash-due-to-skin-framework#60478</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5760">varvaripavel</a><br /><strong>Subject:</strong> 17330<br /><strong>Posted:</strong> 26 September 2010 at 10:46am<br /><br />Hi,<br><br>I have an application which uses the skin framework:<br><br>&nbsp;&nbsp;&nbsp; XTPSkinManager()-&gt;SetApplyOptions( ... );<br>&nbsp;&nbsp;&nbsp; XTPSkinManager()-&gt;LoadSkin( ... );<br><br>Nothing special and everything works nice util I need to print something. Then, the application carshes (more exactley, the crash is in a thread related to the driver); somehow, the printer driver interfes with the skin manager. <br><br>The cause it's pretty obvious because the crash doesn't appear when the skin manager it's not activated.<br><br>I tried to disable the skins for the printing module - but the crashes appear again.<br><br>&nbsp;&nbsp;&nbsp; XTPSkinManager()-&gt;SetAutoApplyNewWindows( FALSE );<br>&nbsp;&nbsp;&nbsp; XTPSkinManager()-&gt;SetAutoApplyNewThreads( FALSE );<br><br>or even:<br><br>&nbsp;&nbsp;&nbsp; XTPSkinManager()-&gt;RemoveAll();<br><br>The problem it's pretty bad since, at this point I have to decide wheather I keep the skin or the crashes.<br><br>Do you have any idea how I could fix (or avoid) this ?<br><br>Pavel Varvari<br>XISOFT SRL<br>]]>
   </description>
   <pubDate>Sun, 26 Sep 2010 10:46:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17330&amp;PID=60478&amp;title=application-crash-due-to-skin-framework#60478</guid>
  </item> 
 </channel>
</rss>