<?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 : CXTPOffice2007FrameHook::RedrawFrame()  Crashes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : CXTPOffice2007FrameHook::RedrawFrame()  Crashes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 25 May 2026 12:17:59 +0000</pubDate>
  <lastBuildDate>Tue, 11 Oct 2016 07:26:12 +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=6517</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[CXTPOffice2007FrameHook::RedrawFrame()  Crashes : PS solvedThe problem was a resource...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6517&amp;PID=75195&amp;title=cxtpoffice2007framehookredrawframe-crashes#75195</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8133">Didi</a><br /><strong>Subject:</strong> 6517<br /><strong>Posted:</strong> 11 October 2016 at 7:26am<br /><br />PS solved<br>The problem was a resource leak in my own code. <br>]]>
   </description>
   <pubDate>Tue, 11 Oct 2016 07:26:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6517&amp;PID=75195&amp;title=cxtpoffice2007framehookredrawframe-crashes#75195</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPOffice2007FrameHook::RedrawFrame()  Crashes : I knkow, this post is very old.But...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6517&amp;PID=75192&amp;title=cxtpoffice2007framehookredrawframe-crashes#75192</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8133">Didi</a><br /><strong>Subject:</strong> 6517<br /><strong>Posted:</strong> 10 October 2016 at 6:03am<br /><br />I knkow, this post is very old.<br>But I have actually the same problem. Was there any solution?<br>Wy returns the constructor&nbsp; of&nbsp; CXTPCompatibleDC&nbsp; sometimes NULL ? Is that a problem wit windows-resources?<br><br>Best regards,<br>Didi<br>]]>
   </description>
   <pubDate>Mon, 10 Oct 2016 06:03:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6517&amp;PID=75192&amp;title=cxtpoffice2007framehookredrawframe-crashes#75192</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPOffice2007FrameHook::RedrawFrame()  Crashes : Hi,the problem is still there.My...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6517&amp;PID=20827&amp;title=cxtpoffice2007framehookredrawframe-crashes#20827</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=728">gwoin</a><br /><strong>Subject:</strong> 6517<br /><strong>Posted:</strong> 01 March 2007 at 5:04am<br /><br />Hi,<br><br>the problem is still there.<br>My application crashes in the RibbonBar (CommandBarxxx files) redraw.<br>It happens really quickly, just after few minutes, even if I don't use it.<br><br>Each time, the callstack show that a CDC is empty.<br><br>Another sample of calls stack:<br><ul><li>&nbsp;&nbsp;&nbsp;&nbsp; msvcr80d.dll!memcmp(const void * lhs=0x00000000, const void * rhs=0x00000000, unsigned int siz=168904)&nbsp; + 0x19a octets&nbsp;&nbsp;&nbsp; C</li><li>&gt;&nbsp;&nbsp;&nbsp; UID.dll!CXTPCommandBarAnimation::RedrawRect(const tagRECT * lpRect=0x0012f5f0, int bAnimate=1)&nbsp; Ligne 287 + 0x32 octets&nbsp;&nbsp;&nbsp; C++</li><li>&nbsp;&nbsp;&nbsp;&nbsp; UID.dll!CXTPCommandBar::Redraw(const tagRECT * lpRect=0x0012f5f0, int bAnimate=1)&nbsp; Ligne 1313&nbsp;&nbsp;&nbsp; C++</li><li>&nbsp;&nbsp;&nbsp;&nbsp; UID.dll!CXTPRibbonBar::OnMouseLeave()&nbsp; Ligne 1848 + 0x1d octets&nbsp;&nbsp;&nbsp; C++</li><li>&nbsp;&nbsp;&nbsp;&nbsp; mfc80d.dll!CWnd::OnWndMsg(unsigned int message=675, unsigned int wParam=0, long lParam=0, long * pResult=0x0012f84c)&nbsp; Ligne 2028&nbsp;&nbsp;&nbsp; C++</li></ul><br>Could there be a reason why a CDC created with "CreateCompatibleDC" or with "CXTPCompatibleDC dc(pDC, &amp;bmp);" is empty?<br><br>The problem can appears at different places in the Ribbon redraw.<br>Some other times, it crashes in the XTPOffice2007Image.cpp file, in the "DrawImage" function.<br><br>After this line (l. 236): <i>CXTPCompatibleDC dc(pDC, &amp;bmp);</i><br>dc has a m_hDC = NULL <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" align="absmiddle"><br><br>I looked at the&nbsp; XTP samples and I am using the same code to create my window, my ribbonbar and apply skin and ribbon theme.<br><br>Any idea to avoid this?<br>]]>
   </description>
   <pubDate>Thu, 01 Mar 2007 05:04:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6517&amp;PID=20827&amp;title=cxtpoffice2007framehookredrawframe-crashes#20827</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPOffice2007FrameHook::RedrawFrame()  Crashes :  Hi,I am using Ribbon and own...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6517&amp;PID=20768&amp;title=cxtpoffice2007framehookredrawframe-crashes#20768</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=728">gwoin</a><br /><strong>Subject:</strong> 6517<br /><strong>Posted:</strong> 27 February 2007 at 5:17am<br /><br />Hi,<br><br>I am using Ribbon and own Skin in a MFC application and I think there are some problems with that configuration.<br>The application crashes some times on XTPSkinManagerAPIHook.<br>I already tried the <a href="forum_posts.asp?TID=6291&amp;PID=20604#20604" target="_blank">patch from SUNGGI</a>, using CCriticalSection, but it doesn't work for me <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" align="absmiddle"><br><br>Here is the call stack (I renamed the DLL "UID" for shorter):<br><br><ul><li>msvcr80d.dll!_CxxThrowException(void * pExceptionObject=0x0012daa0, const _s__ThrowInfo * pThrowInfo=0x783cc534)&nbsp; Ligne 161&nbsp;&nbsp;&nbsp; C++</li></ul><ul><li>&gt;&nbsp;&nbsp;&nbsp; mfc80d.dll!AfxThrowResourceException()&nbsp; Ligne 1392&nbsp;&nbsp;&nbsp; C++</li></ul><ul><li>&nbsp;&nbsp;&nbsp;&nbsp; mfc80d.dll!CWindowDC::CWindowDC(CWnd * pWnd=0x046fc8c8)&nbsp; Ligne 1059&nbsp;&nbsp;&nbsp; C++</li></ul><ul><li>&nbsp;&nbsp;&nbsp;&nbsp; UID.dll!CXTPOffice2007FrameHook::RedrawFrame()&nbsp; Ligne 329 + 0x11 octets&nbsp;&nbsp;&nbsp; C++</li><li>&nbsp;&nbsp;&nbsp;&nbsp; UID.dll!CXTPOffice2007FrameHook::OnHookMessage(HWND__ * __formal=0x002205a8, unsigned int nMessage=134, unsigned int &amp; wParam=0, long &amp; lParam=395284, long &amp; lResult=1)&nbsp; Ligne 745&nbsp;&nbsp;&nbsp; C++</li><li>&nbsp;&nbsp;&nbsp;&nbsp; UID.dll!CXTPHookManager::CHookSink::OnHookMessage(HWND__ * hWnd=0x002205a8, unsigned int nMessage=134, unsigned int &amp; wParam=0, long &amp; lParam=395284, long &amp; lResult=1)&nbsp; Ligne 130 + 0x3d octets&nbsp;&nbsp;&nbsp; C++</li></ul><ul><li>&nbsp;&nbsp;&nbsp;&nbsp; UID.dll!CXTPHookManager::HookWndProc(HWND__ * hWnd=0x002205a8, unsigned int message=134, unsigned int wParam=0, long lParam=395284)&nbsp; Ligne 202 + 0x1c octets&nbsp;&nbsp;&nbsp; C++</li><li>&nbsp;&nbsp;&nbsp;&nbsp; user32.dll!7d9472f8() &nbsp;&nbsp;&nbsp; </li><li>&nbsp;&nbsp;&nbsp;&nbsp; user32.dll!7d9475e3() &nbsp;&nbsp;&nbsp; </li><li>&nbsp;&nbsp;&nbsp;&nbsp; user32.dll!7d947578() &nbsp;&nbsp;&nbsp; </li><li>&nbsp;&nbsp;&nbsp;&nbsp; user32.dll!7d94bc72() &nbsp;&nbsp;&nbsp; </li><li>&nbsp;&nbsp;&nbsp;&nbsp; user32.dll!7d950ea9() &nbsp;&nbsp;&nbsp; </li><li>&nbsp;&nbsp;&nbsp;&nbsp; UID.dll!CXTPSkinManagerApiHook::CallWindowProcOrig(long (HWND__ *, unsigned int, unsigned int, long)* lpPrevWndFunc=0x01b27fae, HWND__ * hWnd=0x002205a8, unsigned int Msg=134, unsigned int wParam=0, long lParam=395284)&nbsp; Ligne 172 + 0x19 octets&nbsp;&nbsp;&nbsp; C++</li><li>&nbsp;&nbsp;&nbsp;&nbsp; UID.dll!CXTPSkinManager::DoCallWindowProc(long (HWND__ *, unsigned int, unsigned int, long)* lpPrevWndFunc=0x01b27fae, HWND__ * hWnd=0x002205a8, unsigned int Msg=134, unsigned int wParam=0, long lParam=395284)&nbsp; Ligne 591&nbsp;&nbsp;&nbsp; C++</li><li>&nbsp;&nbsp;&nbsp;&nbsp; UID.dll!CXTPSkinManager::HookWndProc(HWND__ * hWnd=0x002205a8, unsigned int message=134, unsigned int wParam=0, long lParam=395284)&nbsp; Ligne 646 + 0x19 octets&nbsp;&nbsp;&nbsp; C++</li></ul><br>In the stack, and in the function below, dc&nbsp; is NULL:<br>void CXTPOffice2007FrameHook::RedrawFrame()<br>{<br>&nbsp;&nbsp;&nbsp; if (!m_bDwmEnabled)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CWindowDC dc(GetSite());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetPaintManager()-&gt;DrawRibbonFrame(&amp;dc, this);<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br><br>This is very annoying because the application can crash at anytime without I can understand why.<br><br>Any idea to avoid this bug ?<br><br>Thank you.<br><br>]]>
   </description>
   <pubDate>Tue, 27 Feb 2007 05:17:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6517&amp;PID=20768&amp;title=cxtpoffice2007framehookredrawframe-crashes#20768</guid>
  </item> 
 </channel>
</rss>