<?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 : Crash caused by XTPSkinManager</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Crash caused by XTPSkinManager]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 14:26:01 +0000</pubDate>
  <lastBuildDate>Sun, 11 Dec 2011 08:30:18 +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=19227</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[Crash caused by XTPSkinManager : Unfortunately, this was not the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67116&amp;title=crash-caused-by-xtpskinmanager#67116</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 19227<br /><strong>Posted:</strong> 11 December 2011 at 8:30am<br /><br />Unfortunately, this was not the reason.<br>No unusual DLLs are on the call stack when the XTP hooks crash. <br><br>It always crashes in the creation of command bars, and only when I create the window containing all the panels and command bars the second time (after closing/destroying) it. <br><br>Is there some way to trace what XTP is doing? Perhaps something is not initialized correctly.<br><br>I wonder when this effect crept in because it worked for over a year. Not sure which XTP update causes the effect.<br><br>]]>
   </description>
   <pubDate>Sun, 11 Dec 2011 08:30:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67116&amp;title=crash-caused-by-xtpskinmanager#67116</guid>
  </item> 
  <item>
   <title><![CDATA[Crash caused by XTPSkinManager : Thanks for the tip, I will do...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67109&amp;title=crash-caused-by-xtpskinmanager#67109</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 19227<br /><strong>Posted:</strong> 10 December 2011 at 8:05am<br /><br />Thanks for the tip, I will do that <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /><br>Hopefully the suggestions in the post you linked help.<br>]]>
   </description>
   <pubDate>Sat, 10 Dec 2011 08:05:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67109&amp;title=crash-caused-by-xtpskinmanager#67109</guid>
  </item> 
  <item>
   <title><![CDATA[Crash caused by XTPSkinManager : Hm. I sense a bad system-wide...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67096&amp;title=crash-caused-by-xtpskinmanager#67096</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 19227<br /><strong>Posted:</strong> 09 December 2011 at 4:22am<br /><br /><p>Hm. I sense a bad system-wide hook dll here. Look in the output window for suspect dlls being loaded. I know I had a similar problem with some Logitech mouse hook...¨</p><div>&nbsp;</div><div>When you find it, exclude it using the ExcludeModule() API.</div><div>&nbsp;</div><div><a href="http://forum.codejock.com/forum_posts.asp?TID=14967&amp;title=skinframeworkexcludemodule-known-bad-modules-list" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=14967&amp;title=skinframeworkexcludemodule-known-bad-modules-list</a></div>]]>
   </description>
   <pubDate>Fri, 09 Dec 2011 04:22:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67096&amp;title=crash-caused-by-xtpskinmanager#67096</guid>
  </item> 
  <item>
   <title><![CDATA[Crash caused by XTPSkinManager : I can reliably reproduce the crash...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67074&amp;title=crash-caused-by-xtpskinmanager#67074</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 19227<br /><strong>Posted:</strong> 07 December 2011 at 2:02pm<br /><br />I can reliably reproduce the crash in my application.<br>I'm not sure that it can be reproduced easily in a smaller sample. <br><br>My application uses dozens of panels and many of these panels have command bars. All of these windows are hosted in a CMainFrame window, which is declared as <br><br>class CMainFrame : public CXTPFrameWnd, CXTPOffice2007FrameHook<br><br>In response to certain commands, CMainFrame closes all child windows and panels, and then re-opens them.<br><br>This runs the same code that is run when the application closes and starts, e.g. it stores commandbar layouts and loads these layouts again.<br><br>This never causes trouble if the application is closed and started. <br><br>But when I do that without shutting down the application (the Codejock SkinManager remains running) the described problem with creating the command bars happens. Always. And always CreateWindow fails in one of the command bar classes, XTP status bar or toolbar or similar.<br><br><br><br><br>]]>
   </description>
   <pubDate>Wed, 07 Dec 2011 14:02:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67074&amp;title=crash-caused-by-xtpskinmanager#67074</guid>
  </item> 
  <item>
   <title><![CDATA[Crash caused by XTPSkinManager : Hi,is it possible for you to reproduce...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67073&amp;title=crash-caused-by-xtpskinmanager#67073</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 19227<br /><strong>Posted:</strong> 07 December 2011 at 11:50am<br /><br />Hi,<br><br>is it possible for you to reproduce the crash and provide a sample?<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Wed, 07 Dec 2011 11:50:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67073&amp;title=crash-caused-by-xtpskinmanager#67073</guid>
  </item> 
  <item>
   <title><![CDATA[Crash caused by XTPSkinManager :  The problem only happens when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67070&amp;title=crash-caused-by-xtpskinmanager#67070</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 19227<br /><strong>Posted:</strong> 07 December 2011 at 5:05am<br /><br />The problem only happens when I enable skinning for my application. As soon as I comment out the EnableCurrentThead() call, things work as before.<br><br>Could somebody from Codejock please at least respond to this, perhaps with some tips on where too look? Did you change anything with your message hooking code / skin manager recently. This error was <b>not</b> there in earlier releases XTP.<br><br>The problem usually happen in XTP controls, e.g. dockbars:<br><br>BOOL CXTPDockBar::Create(CWnd* pParentWnd, DWORD dwStyle, UINT nID)<br>{<br>&nbsp;&nbsp;&nbsp; ASSERT(pParentWnd != NULL);<br><br>&nbsp;&nbsp;&nbsp; // save the xtp<br>&nbsp;&nbsp;&nbsp; m_dwStyle = (dwStyle &amp; CBRS_ALL);<br><br>&nbsp;&nbsp;&nbsp; XTPBarPosition barPosition = GetPosition();<br>&nbsp;&nbsp;&nbsp; CString strWindowName = barPosition == xtpBarTop ? _T("xtpBarTop") :<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; barPosition == xtpBarLeft ? _T("xtpBarLeft") :<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; barPosition == xtpBarBottom ? _T("xtpBarBottom") : _T("xtpBarRight");<br><br>// This fails, Windows cannot create the window...<br><br><font color="#FF0000">&nbsp;&nbsp;&nbsp; return CWnd::Create(_T("XTPDockBar"), strWindowName, dwStyle, CXTPEmptyRect(), pParentWnd, nID);</font><br>}<br>]]>
   </description>
   <pubDate>Wed, 07 Dec 2011 05:05:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=67070&amp;title=crash-caused-by-xtpskinmanager#67070</guid>
  </item> 
  <item>
   <title><![CDATA[Crash caused by XTPSkinManager : BOOL CWnd::CreateEx(DWORD dwExStyle,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=66926&amp;title=crash-caused-by-xtpskinmanager#66926</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 19227<br /><strong>Posted:</strong> 27 November 2011 at 6:59am<br /><br />BOOL CWnd::CreateEx(DWORD dwExStyle, LPCTSTR lpszClassName,<br><br>...<br><br>&nbsp;&nbsp; &nbsp;if (!AfxUnhookWindowCreate())<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;PostNcDestroy();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // cleanup if CreateWindowEx fails too soon<br><br>&nbsp;&nbsp;<font color="#CC0000"> &nbsp;if (hWnd == NULL)<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return FALSE;<br>&nbsp;&nbsp; &nbsp;ASSERT(hWnd == m_hWnd); // should have been set in send msg hook<br>&nbsp;&nbsp;</font> &nbsp;return TRUE;<br>}]]>
   </description>
   <pubDate>Sun, 27 Nov 2011 06:59:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=66926&amp;title=crash-caused-by-xtpskinmanager#66926</guid>
  </item> 
  <item>
   <title><![CDATA[Crash caused by XTPSkinManager : My app uses to skin it. I tried...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=66924&amp;title=crash-caused-by-xtpskinmanager#66924</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3104">MacW</a><br /><strong>Subject:</strong> 19227<br /><strong>Posted:</strong> 26 November 2011 at 10:04am<br /><br />My app uses <br><br>to skin it. I tried for two days to find the reason for a crash caused when my app closes and opens views, and finally pinned it to the skin manager.<br><br>The problem causing the crash is that creating XTPCommandBars suddenly fails inside MFC, where the hooks created by MFC do not longer set the internal m_hWnd of CWnds correctly during Create or CreateEx.<br><br>These MFC hooks are <b>intercepted </b>by the XTP skin manager. I can repro the effect by opening and closing and opening again a view my application creates. The view contains a ton of child windows, many of them using command bars and other CodeJock classes.<br>My application uses several working threads, but none of them uses MFC classes or windows.<br><br>When the problem appears, the view fails during creating child windows after firing many ASSERTS inside the Create / CreateEx methods. The failure can happen in command bars, in XTP tooltips and elsewhere.<br><br>This is reproducible.<br><br>As soon as I comment out the calls to the skin manager methods the problem goes away. I *think* this problem crept in with one of the latest updates. I have not changed anything with the skin manager handing in six months, but now I have this problem.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>XTPSkinManager()-&gt;EnableCurrentThread();&nbsp;&nbsp;&nbsp; <br>XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics);<br>XTPSkinManager()-&gt;SetAutoApplyNewThreads(FALSE);<br></pre></td></tr></table><br><br>As soon as I comment out the three lines above (I call them in the ctor of CMainFrame) the problem is gone. I can close and open the view dozens of times without problems. Re-enabling the skinning cases the view to fail to create during create view / destroy view / create view.<br><br><br>]]>
   </description>
   <pubDate>Sat, 26 Nov 2011 10:04:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19227&amp;PID=66924&amp;title=crash-caused-by-xtpskinmanager#66924</guid>
  </item> 
 </channel>
</rss>