<?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 : Intermittent crash in frame hook</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Intermittent crash in frame hook]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 01:44:38 +0000</pubDate>
  <lastBuildDate>Fri, 02 Oct 2020 17:47:17 +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=24063</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[Intermittent crash in frame hook : It would appear the input window...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24063&amp;PID=77890&amp;title=intermittent-crash-in-frame-hook#77890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 24063<br /><strong>Posted:</strong> 02 October 2020 at 5:47pm<br /><br /><div>It would appear the input window to the constructor is not a valid window during the entire call to the constructor. Are you threading? MFC isn't thread safe.</div><div><br></div><div>A lot can go on while this code executes:</div><div><br></div><div>&nbsp;&nbsp;&nbsp; ASSERT(pWnd == NULL || ::IsWindow(pWnd-&gt;m_hWnd));<br><br></div><div>&nbsp;&nbsp;&nbsp; if (!Attach(::GetWindowDC(m_hWnd = pWnd-&gt;GetSafeHwnd())))</div><div><br></div><div>The first line is only executed for debug builds. If you want to validate a window during release builds, you have to make the IsWindow call before calling the constructor. If a thread takes over while doing "m_hWnd = ...) no the m_hWnd could be bad before the call to Attach is made.<br></div>]]>
   </description>
   <pubDate>Fri, 02 Oct 2020 17:47:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24063&amp;PID=77890&amp;title=intermittent-crash-in-frame-hook#77890</guid>
  </item> 
  <item>
   <title><![CDATA[Intermittent crash in frame hook : Well, we cant reproduce it either,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24063&amp;PID=77871&amp;title=intermittent-crash-in-frame-hook#77871</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9364">ericgen34</a><br /><strong>Subject:</strong> 24063<br /><strong>Posted:</strong> 25 September 2020 at 3:31am<br /><br />Well, we cant reproduce it either, and the application is rather big, I cant really send a sample I'm afraid. I just wondered if there are specific areas to look into]]>
   </description>
   <pubDate>Fri, 25 Sep 2020 03:31:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24063&amp;PID=77871&amp;title=intermittent-crash-in-frame-hook#77871</guid>
  </item> 
  <item>
   <title><![CDATA[Intermittent crash in frame hook : Hello,Unfortunately it is not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24063&amp;PID=77870&amp;title=intermittent-crash-in-frame-hook#77870</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 24063<br /><strong>Posted:</strong> 25 September 2020 at 2:30am<br /><br />Hello,<div><br></div><div>Unfortunately it is not clear what exactly is going wrong. Can you please provide more detailed information. If it cannot be re-produced in any of our sample applications provided I would appreciate you sending a sample application so that we could debug it.<br></div><div><br></div><div>Regards,</div>Artem Gontarenko]]>
   </description>
   <pubDate>Fri, 25 Sep 2020 02:30:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24063&amp;PID=77870&amp;title=intermittent-crash-in-frame-hook#77870</guid>
  </item> 
  <item>
   <title><![CDATA[Intermittent crash in frame hook : Apologies, the call stack screen...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24063&amp;PID=77861&amp;title=intermittent-crash-in-frame-hook#77861</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9364">ericgen34</a><br /><strong>Subject:</strong> 24063<br /><strong>Posted:</strong> 22 September 2020 at 5:05am<br /><br />Apologies, the call stack screen shot didnt show. Here it is copied:<br><br><div>&nbsp;<span style="white-space:pre">	</span>KERNELBASE.dll!_RaiseException@16()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>VCRUNTIME140.dll!_CxxThrowException(void * pExceptionObject, const _s__ThrowInfo * pThrowInfo) Line 129<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>mfc140u.dll!AfxThrowResourceException() Line 1347<span style="white-space:pre">	</span>C++</div><div>&gt;<span style="white-space:pre">	</span>mfc140u.dll!CWindowDC::CWindowDC(CWnd * pWnd) Line 1018<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro1900vc150U.dll!CXTPCommandBarsFrameHook::RedrawFrame() Line 627<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro1900vc150U.dll!CXTPCommandBarsFrameHook::OnHookMessage(HWND__ * hWnd, unsigned int nMessage, unsigned int &amp; wParam, long &amp; lParam, long &amp; lResult) Line 1025<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro1900vc150U.dll!CXTPHookManager::CHookSink::OnHookMessage(HWND__ * hWnd, unsigned int nMessage, unsigned int &amp; wParam, long &amp; lParam, long &amp; lResult) Line 319<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro1900vc150U.dll!CXTPHookManager::HookWndProc(HWND__ * hWnd, unsigned int message, unsigned int wParam, long lParam) Line 440<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!__InternalCallWinProc@20()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!UserCallWinProcCheckWow()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!DispatchClientMessage()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!___fnDWORD@4()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>ntdll.dll!_KiUserCallbackDispatcher@12()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!RealDefWindowProcWorker()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!RealDefWindowProcW()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>uxtheme.dll!_ThemeDefWindowProc()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>uxtheme.dll!_ThemeDefWindowProcW@16()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!DefWindowProcW()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!DefWindowProcWorker()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!DefDlgProcWorker()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!_DefDlgProcW@16()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>user32.dll!UserCallWinProcCheckWow()<span style="white-space:pre">	</span>Unknown</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 22 Sep 2020 05:05:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24063&amp;PID=77861&amp;title=intermittent-crash-in-frame-hook#77861</guid>
  </item> 
  <item>
   <title><![CDATA[Intermittent crash in frame hook : Hi,We keep having some intermittent...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24063&amp;PID=77860&amp;title=intermittent-crash-in-frame-hook#77860</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9364">ericgen34</a><br /><strong>Subject:</strong> 24063<br /><strong>Posted:</strong> 22 September 2020 at 5:03am<br /><br />Hi,&nbsp;<div><br></div><div>We keep having some intermittent crashes reported by customers that we cannot reproduce in dev. The call stack of a typical crash is shown below.</div><div><br></div><div>I wonder if someone has any idea what is going on? Or how we can start looking into this? We are using the framework normally as far as I know</div><div><br></div><div>Thank you!</div><div><br></div><div><img src="" border="0" /></div>]]>
   </description>
   <pubDate>Tue, 22 Sep 2020 05:03:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24063&amp;PID=77860&amp;title=intermittent-crash-in-frame-hook#77860</guid>
  </item> 
 </channel>
</rss>