<?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 in XTPSkinManagerApiHook.cpp (383)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Crash in XTPSkinManagerApiHook.cpp (383)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 10:40:19 +0000</pubDate>
  <lastBuildDate>Tue, 20 May 2008 11:19:25 +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=9480</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 in XTPSkinManagerApiHook.cpp (383) : Thanks, I&amp;#039;ll try to poll...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=35472&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#35472</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4100">xhantt</a><br /><strong>Subject:</strong> 9480<br /><strong>Posted:</strong> 20 May 2008 at 11:19am<br /><br />Thanks, I'll try to poll our PM to consider an upgrade.]]>
   </description>
   <pubDate>Tue, 20 May 2008 11:19:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=35472&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#35472</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in XTPSkinManagerApiHook.cpp (383) : Hi, Actually in 12.0 we have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=35441&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#35441</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9480<br /><strong>Posted:</strong> 20 May 2008 at 12:43am<br /><br /><P>Hi,</P><DIV>Actually in 12.0 we have critical section in - CXTPLockGuard lock(m_pApiHook-&gt;m_cs);</DIV><DIV>&nbsp;</DIV><DIV>You can exclude mshtml.dll. with</DIV><DIV>&nbsp;</DIV><DIV>XTPSkinManager()-&gt;ExcludeModule("mshtml.dll");&nbsp;&nbsp;&nbsp; // (for 12.0 )</DIV>]]>
   </description>
   <pubDate>Tue, 20 May 2008 00:43:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=35441&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#35441</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in XTPSkinManagerApiHook.cpp (383) : Almost, but I&amp;#039;m now experiencing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=35436&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#35436</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4100">xhantt</a><br /><strong>Subject:</strong> 9480<br /><strong>Posted:</strong> 19 May 2008 at 7:45pm<br /><br />Almost, but I'm now experiencing another crash in the same function but only when is trying to hook mshtml.dll.<br>]]>
   </description>
   <pubDate>Mon, 19 May 2008 19:45:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=35436&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#35436</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in XTPSkinManagerApiHook.cpp (383) :  I&amp;#039;m experiencing the same...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=35415&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#35415</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4100">xhantt</a><br /><strong>Subject:</strong> 9480<br /><strong>Posted:</strong> 19 May 2008 at 11:03am<br /><br />I'm experiencing the same problem, it can be related to a call to ImageDirectoryEntryToData from different threads.<br><br>In the Remarks section of the MSDN documentation you can read<br><br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.<br></td></tr></table><br><br>I've added a critical section guarding this call, so far I don't have experienced the same crash again.<br><br><br>]]>
   </description>
   <pubDate>Mon, 19 May 2008 11:03:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=35415&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#35415</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in XTPSkinManagerApiHook.cpp (383) : Unfortunately I get this crash...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=35360&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#35360</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 9480<br /><strong>Posted:</strong> 17 May 2008 at 8:57pm<br /><br /><P>Unfortunately I get this crash in 12.0 too (at line 414). Though, it is very rare...</P>]]>
   </description>
   <pubDate>Sat, 17 May 2008 20:57:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=35360&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#35360</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in XTPSkinManagerApiHook.cpp (383) : Hi,  Please download beta 12.0...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=32904&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#32904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9480<br /><strong>Posted:</strong> 01 April 2008 at 1:52am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Please download beta 12.0 and check if you can reproduce it.</DIV>]]>
   </description>
   <pubDate>Tue, 01 Apr 2008 01:52:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=32904&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#32904</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in XTPSkinManagerApiHook.cpp (383) : It seems to happen more often...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=32849&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#32849</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 9480<br /><strong>Posted:</strong> 31 March 2008 at 2:48am<br /><br />It seems to happen more often when I do this:<DIV>&nbsp;</DIV><DIV>F5, close program. F5, close program...</DIV><DIV>&nbsp;</DIV><DIV>Perhaps the hook is not correctly uninitialized upon termination?</DIV>]]>
   </description>
   <pubDate>Mon, 31 Mar 2008 02:48:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=32849&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#32849</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in XTPSkinManagerApiHook.cpp (383) : Damn. It&amp;#039;s becoming more...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=31747&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#31747</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 9480<br /><strong>Posted:</strong> 29 February 2008 at 7:36am<br /><br /><P>Damn. It's becoming more frequent.</P><DIV></DIV><DIV></DIV>I hope you are aware of this bug! :/]]>
   </description>
   <pubDate>Fri, 29 Feb 2008 07:36:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=31747&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#31747</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in XTPSkinManagerApiHook.cpp (383) : Happened again! Can you please...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=31155&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#31155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 9480<br /><strong>Posted:</strong> 13 February 2008 at 1:42pm<br /><br />Happened again! Can you please investigate this?]]>
   </description>
   <pubDate>Wed, 13 Feb 2008 13:42:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=31155&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#31155</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in XTPSkinManagerApiHook.cpp (383) : I started my application for the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=30756&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#30756</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 9480<br /><strong>Posted:</strong> 03 February 2008 at 2:08am<br /><br /><DIV>I started my application for the 1000th time and got a crash&nbsp;at line 383 in XTPSkinManagerApiHook.cpp (version 11.2.2, VS 2008, MFC in shared DLL, _XTP_STATIC_LINK defined). I have not been able to reproduce the error. The only thing I remember is that I got a LOT of memory leaks in another DLL and decided to terminate the trace output (Shift+F5), after which I hit F5 immediately. Not sure if that can yield a problem, but still...</DIV><DIV>&nbsp;</DIV><DIV>pszCalleeModName = "USER32.DLL"</DIV><DIV>pfnCurrent = 0x7e42f710</DIV><DIV>pfnNew&nbsp;= 0x0060c963 CXTPSkinManagerApiHook::OnHookSetScrollPos(struct HWND__ *,int,int,int)&nbsp;int (void)*<BR>hmodCaller&nbsp;= 0x77c00000 {unused=??? }&nbsp;HINSTANCE__ *<BR></DIV><DIV>I hope this <strong>call stack</strong> trace&nbsp;will give you a hint of what's going on:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;imagehlp.dll!76c941f4() &nbsp;<BR>&nbsp;&nbsp;&#091;Frames below may be incorrect and/or missing, no symbols loaded for imagehlp.dll&#093;&nbsp;<BR>&nbsp;&nbsp;imagehlp.dll!76c941c9() &nbsp;<BR>&gt;&nbsp;MyProgram.exe!CXTPSkinManagerApiFunction::ReplaceInOneModule(const char * pszCalleeModName=0x01e9c294, int (void)* pfnCurrent=0x7e42f710, int (void)* pfnNew=0x0060c963, HINSTANCE__ * hmodCaller=0x77c00000)&nbsp; Line 383 + 0x14 bytes&nbsp;C++<BR>&nbsp;&nbsp;MyProgram.exe!CXTPSkinManagerApiFunction::ReplaceInAllModules(const char * pszCalleeModName=0x01e9c294, int (void)* pfnCurrent=0x7e42f710, int (void)* pfnNew=0x0060c963)&nbsp; Line 356 + 0x18 bytes&nbsp;C++<BR>&nbsp;&nbsp;MyProgram.exe!CXTPSkinManagerApiFunction::HookImport()&nbsp; Line 324 + 0x1d bytes&nbsp;C++<BR>&nbsp;&nbsp;MyProgram.exe!CXTPSkinManagerApiHook::AddHook(XTPSkinFrameworkApiFunctionIndex nIndex=xtpSkinApiSetScrollPos, const char * pszCalleeModName=0x00a526c0, const char * pszFuncName=0x00a52890, int (void)* pfnOrig=0x7e42f710, int (void)* pfnHook=0x0060c963)&nbsp; Line 183&nbsp;C++<BR>&nbsp;&nbsp;MyProgram.exe!CXTPSkinManagerApiHook::HookImport(XTPSkinFrameworkApiFunctionIndex nIndex=xtpSkinApiSetScrollPos, const char * pszCalleeModName=0x00a526c0, const char * pszFuncName=0x00a52890, int (void)* pfnHook=0x0060c963)&nbsp; Line 159 + 0x1c bytes&nbsp;C++<BR>&nbsp;&nbsp;MyProgram.exe!CXTPSkinManagerApiHook::InitializeHookManagement()&nbsp; Line 513&nbsp;C++<BR>&nbsp;&nbsp;MyProgram.exe!CXTPSkinManager::LoadSkin(const char * lpszResourcePath=0x00000000, const char * lpszIniFileName=0x00a33584)&nbsp; Line 486&nbsp;C++<BR>&nbsp;&nbsp;MyProgram.exe!CMainFrame::CMainFrame()&nbsp; Line 72&nbsp;C++<BR>&nbsp;&nbsp;MyProgram.exe!CMyProgramApp::InitInstance()&nbsp; Line 167 + 0x39 bytes&nbsp;C++<BR>&nbsp;&nbsp;mfc90d.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00151f14, int nCmdShow=1)&nbsp; Line 37 + 0xd bytes&nbsp;C++<BR>&nbsp;&nbsp;MyProgram.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00151f14, int nCmdShow=1)&nbsp; Line 30&nbsp;C++<BR>&nbsp;&nbsp;MyProgram.exe!__tmainCRTStartup()&nbsp; Line 574 + 0x35 bytes&nbsp;C<BR>&nbsp;&nbsp;MyProgram.exe!WinMainCRTStartup()&nbsp; Line 399&nbsp;C<BR>&nbsp;&nbsp;kernel32.dll!7c816fd7() &nbsp;<BR>&nbsp;&nbsp;MyProgram.exe!CXTPCommandBars::_GetAddOrRemovePopup(CXTPToolBar * pToolBar=0x85ffecb6, CXTPCommandBar * pExpandBar=0x8b1974c0)&nbsp; Line 1705 + 0x3e bytes&nbsp;C++<BR>&nbsp;&nbsp;d9e80000()&nbsp;<BR></DIV>]]>
   </description>
   <pubDate>Sun, 03 Feb 2008 02:08:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9480&amp;PID=30756&amp;title=crash-in-xtpskinmanagerapihook-cpp-383#30756</guid>
  </item> 
 </channel>
</rss>