<?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 : CXTPSingletonPointer access violation</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPSingletonPointer access violation]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 12:36:51 +0000</pubDate>
  <lastBuildDate>Sat, 28 Jan 2017 12:43:45 +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=22874</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[CXTPSingletonPointer access violation : Does anyone still have this issue...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=75525&amp;title=cxtpsingletonpointer-access-violation#75525</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 22874<br /><strong>Posted:</strong> 28 January 2017 at 12:43pm<br /><br />Does anyone still have this issue after migration to 17.3? If so please provide details so that it's fixed for 18.0.<div><br></div><div>Regards,</div><div>&nbsp; Alexander</div>]]>
   </description>
   <pubDate>Sat, 28 Jan 2017 12:43:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=75525&amp;title=cxtpsingletonpointer-access-violation#75525</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSingletonPointer access violation : I believe this issue will hit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=75391&amp;title=cxtpsingletonpointer-access-violation#75391</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8955">guiuser1</a><br /><strong>Subject:</strong> 22874<br /><strong>Posted:</strong> 29 November 2016 at 6:44pm<br /><br />I believe this issue will hit us also..<br><br>I have been trying to figure out a solution to themed CDialogs and I believe you have provided some interesting insight into this...<br><br>Our apps are also Tab View based and your concerns will probably also hit us.&nbsp; We are testing v17.3 as we speak....trying to port our apps to CJ has been a task. Lot things work great but not everything.&nbsp; <br><br>Unfortunately, the Tab views and themed dialogs is a big one for us as well.<br><br><br>]]>
   </description>
   <pubDate>Tue, 29 Nov 2016 18:44:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=75391&amp;title=cxtpsingletonpointer-access-violation#75391</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSingletonPointer access violation : Is this bug going to be fixed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=75177&amp;title=cxtpsingletonpointer-access-violation#75177</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=421">calvi</a><br /><strong>Subject:</strong> 22874<br /><strong>Posted:</strong> 05 October 2016 at 5:54am<br /><br />Is this bug going to be fixed in v17.3?<br><br>]]>
   </description>
   <pubDate>Wed, 05 Oct 2016 05:54:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=75177&amp;title=cxtpsingletonpointer-access-violation#75177</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSingletonPointer access violation : Any solution to this problem?-cpede...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=74792&amp;title=cxtpsingletonpointer-access-violation#74792</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22874<br /><strong>Posted:</strong> 08 June 2016 at 10:09am<br /><br />Any solution to this problem?<div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Wed, 08 Jun 2016 10:09:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=74792&amp;title=cxtpsingletonpointer-access-violation#74792</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSingletonPointer access violation : I too have received a report caused...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=74422&amp;title=cxtpsingletonpointer-access-violation#74422</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=421">calvi</a><br /><strong>Subject:</strong> 22874<br /><strong>Posted:</strong> 09 February 2016 at 10:54am<br /><br />I too have received a report caused by the same issue, which I can't reproduce.&nbsp; This is the complete stack trace, which I submitted in a bug report:<br><br><blockquote>ntdll.dll!RtlpWaitOnCriticalSection() Unknown<br>ntdll.dll!RtlpEnterCriticalSectionContended() Unknown<br>myapp.exe!CXTPSingletonPointer::GetInstance() Line 68 C++<br>myapp.exe!CXTPCommandBar::~CXTPCommandBar() Line 235 C++<br>&#091;External Code&#093;<br>myapp.exe!CCmdTarget::InternalRelease() Line 177 C++<br>&#091;External Code&#093;<br>combase.dll!CoUninitialize() Line 3769 C++<br>myapp.exe!CXTPMarkupObject::~CXTPMarkupObject() Line 627 C++<br>&#091;External Code&#093;<br>myapp.exe!CCmdTarget::InternalRelease() Line 177 C++<br>myapp.exe!CXTPMarkupType::CClassList::~CClassList() Line 288 C++<br>&#091;External Code&#093; <br></blockquote><br>This indicates that the main application has terminated, and statically allocated objects are being destroyed.<br><br>The only explicit calls to the themes API are:<br><br><blockquote>XTPPaintManager()-&gt;SetTheme(xtpThemeVisualStudio2010);<br>m_paneManager.SetTheme(xtpPaneThemeVisualStudio2010);<br>m_paneManager.SetThemedFloatingFrames(TRUE);<br></blockquote><br>It may be significant that the customer's PC is unusually powerful:<br><br><blockquote>Intel 8 Processor i7-4790K CPU @ 4.00GHz, with 16G Ram<br>2 Monitors with 1920 x 1200 Resolution<br></blockquote><br>]]>
   </description>
   <pubDate>Tue, 09 Feb 2016 10:54:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=74422&amp;title=cxtpsingletonpointer-access-violation#74422</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSingletonPointer access violation : I found a way to reproduce this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=74393&amp;title=cxtpsingletonpointer-access-violation#74393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 22874<br /><strong>Posted:</strong> 01 February 2016 at 5:28pm<br /><br />I found a way to reproduce this crash consistently, and doing so led me to a solution.<div><br></div><div>I have a CDialog window that is themed by deriving from CXTPCommandBarsFrameHook and calling EnableFrameTheme() from inside of OnInitDialog().</div><div><br></div><div>This dialog in turns uses&nbsp;CXTPTabControl to embed a series of other CDialog windows into tabs. One of those dialogs was ALSO deriving from&nbsp;<span style="line-height: 16.8px;">CXTPCommandBarsFrameHook. Once that derivation was removed, this crash stopped occurring.</span></div><div><span style="line-height: 16.8px;"><br></span></div><div><span style="line-height: 16.8px;">It appears that this nesting of&nbsp;</span><span style="line-height: 16.8px;">CXTPCommandBarsFrameHook-derived windows was confusing the window hook.</span></div>]]>
   </description>
   <pubDate>Mon, 01 Feb 2016 17:28:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=74393&amp;title=cxtpsingletonpointer-access-violation#74393</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPSingletonPointer access violation : I&amp;#039;ve received a couple of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=74392&amp;title=cxtpsingletonpointer-access-violation#74392</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 22874<br /><strong>Posted:</strong> 01 February 2016 at 4:02pm<br /><br />I've received a couple of crash reports from users since upgrading to XTP v17, and today I was lucky enough to reproduce it in debug mode. It's very hard to trigger this crash (seems to be random), but here's the stack trace:<div><br></div><div><div><font face="Courier New, Courier, mono"><span style="line-height: 1.4;">&nbsp;</span><span ="Apple-tab-span" style="line-height: 1.4; white-space: pre;">	</span><span style="line-height: 1.4;">ntdll.dll!RtlpWaitOnCriticalSection()</span><span ="Apple-tab-span" style="line-height: 1.4; white-space: pre;">	</span><span style="line-height: 1.4;">Unknown</span></font></div><div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>ntdll.dll!RtlpEnterCriticalSectionContended()<span ="Apple-tab-span" style="white-space:pre">	</span>Unknown</font></div><div><font face="Courier New, Courier, mono">&gt;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPSingletonPointer::GetInstance() Line 68<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPSingleton&lt;CXTPHookManager&gt;::Instance() Line 119<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!XTPHookManager() Line 346<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPCommandBarsFrameHook::WinEventProc(CXTPWinEventHook::HWINEVENTHOOK__ * __formal, unsigned long event, HWND__ * hWnd, long idObject, long __formal, unsigned long __formal, unsigned long __formal) Line 114<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>user32.dll!__ClientCallWinEventProc()<span ="Apple-tab-span" style="white-space:pre">	</span>Unknown</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>ntdll.dll!KiUserCallbackDispatcherContinue()<span ="Apple-tab-span" style="white-space:pre">	</span>Unknown</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>user32.dll!NtUserPeekMessage()<span ="Apple-tab-span" style="white-space:pre">	</span>Unknown</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>user32.dll!PeekMessageW()<span ="Apple-tab-span" style="white-space:pre">	</span>Unknown</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>combase.dll!PeekTillDone(HWND__ * hWnd) Line 595<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>combase.dll!OXIDEntry::WaitForApartmentShutdown() Line 1525<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>combase.dll!OXIDEntry::StopServer() Line 1451<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>combase.dll!CComApartment::StopServer() Line 1424<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>combase.dll!StopThread(int fHostThread) Line 2404<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>combase.dll!ApartmentUninitialize(int fHostThread) Line 2621<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>combase.dll!wCoUninitialize(COleTls &amp; Tls, int fHostThread) Line 4050<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>combase.dll!CoUninitialize() Line 3970<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPComInitializer::~CXTPComInitializer() Line 1288<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPComInitializer::`scalar deleting destructor'(unsigned int)<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPMarkupObject::~CXTPMarkupObject() Line 627<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPMarkupType::~CXTPMarkupType() Line 390<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPMarkupType::`scalar deleting destructor'(unsigned int)<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPMarkupObject::OnFinalRelease() Line 643<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CCmdTarget::InternalRelease() Line 177<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPMarkupObject::Release() Line 649<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!CXTPMarkupType::CClassList::~CClassList() Line 294<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!`CXTPMarkupType::GetClassList'::`2'::`dynamic atexit destructor for 'list''()<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!_execute_onexit_table::__l22::&lt;lambda&gt;() Line 198<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!__crt_seh_guarded_call&lt;int&gt;::operator()&lt;void &lt;lambda&gt;(void),int &lt;lambda&gt;(void) &amp; __ptr64,void &lt;lambda&gt;(void) &gt;(__acrt_lock_and_call::__l3::void &lt;lambda&gt;(void) &amp;&amp; setup, _execute_onexit_table::__l22::int &lt;lambda&gt;(void) &amp; action, __acrt_lock_and_call::__l4::void &lt;lambda&gt;(void) &amp;&amp; cleanup) Line 199<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!__acrt_lock_and_call&lt;int &lt;lambda&gt;(void) &gt;(const __acrt_lock_id lock_id, _execute_onexit_table::__l22::int &lt;lambda&gt;(void) &amp;&amp; action) Line 882<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!_execute_onexit_table(_onexit_table_t * table) Line 222<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!common_exit(const int return_code, const _crt_exit_cleanup_mode cleanup_mode, const _crt_exit_return_mode return_mode) Line 211<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!exit(int return_code) Line 283<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!__scrt_common_main_seh() Line 275<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!__scrt_common_main() Line 309<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>FolderSizes.exe!wWinMainCRTStartup() Line 17<span ="Apple-tab-span" style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>kernel32.dll!BaseThreadInitThunk()<span ="Apple-tab-span" style="white-space:pre">	</span>Unknown</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>ntdll.dll!RtlUserThreadStart()<span ="Apple-tab-span" style="white-space:pre">	</span>Unknown</font></div></div><div><br></div></div><div>At the point of crash within&nbsp;CXTPSingletonPointer::GetInstance(), the m_access member&nbsp;CRITICAL_SECTION is NULL (assumedly because it's been deleted), which I believe is why the access violation occurs.</div><div><br></div><div>Never saw crashes anything like this with the XTP v16 code base, and would appreciate any feedback.</div><div><br></div><div>- Mark R.</div>]]>
   </description>
   <pubDate>Mon, 01 Feb 2016 16:02:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22874&amp;PID=74392&amp;title=cxtpsingletonpointer-access-violation#74392</guid>
  </item> 
 </channel>
</rss>