<?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 : Assert on shutdown</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Assert on shutdown]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 14:55:26 +0000</pubDate>
  <lastBuildDate>Mon, 06 May 2024 08:18:36 +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=24402</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[Assert on shutdown : The new beta version of ToolkitPro...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78910&amp;title=assert-on-shutdown#78910</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 24402<br /><strong>Posted:</strong> 06 May 2024 at 8:18am<br /><br />The new beta version of ToolkitPro 24.0 has been released, it is expected to fix all those and related issues in Markup. The beta release should be available for download for your account if you have an active subscription, if you don't have one please consider upgrading. Please report any new issues found.<div><br></div><div>Regards,</div><div>&nbsp; Alexander</div>]]>
   </description>
   <pubDate>Mon, 06 May 2024 08:18:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78910&amp;title=assert-on-shutdown#78910</guid>
  </item> 
  <item>
   <title><![CDATA[Assert on shutdown : Ok,I am new to this tool. I have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78816&amp;title=assert-on-shutdown#78816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9604">matsjansson</a><br /><strong>Subject:</strong> 24402<br /><strong>Posted:</strong> 06 November 2023 at 7:53am<br /><br />Ok,<div>I am new to this tool. I have taken over a project that uses version 10.3.1 and now we have bought v22.1.0.</div><div>I have not read all the relase notes from 10.3.1 to now, but maybe I should.</div><div><br></div><div>/Mats</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Mon, 06 Nov 2023 07:53:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78816&amp;title=assert-on-shutdown#78816</guid>
  </item> 
  <item>
   <title><![CDATA[Assert on shutdown : The initially reported issue and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78815&amp;title=assert-on-shutdown#78815</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 24402<br /><strong>Posted:</strong> 05 November 2023 at 3:37pm<br /><br /><div>The initially reported issue and a large number of related issue have been already fixed for the next ToolkitPro update. However it is still possible that some rare use cases remained unaccounted for.&nbsp;</div><div><br></div><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by matsjansson" alt="Originally posted by matsjansson" style="vertical-align: text-bottom;" /> <strong>matsjansson wrote:</strong><br /><br />BUT HOW SHOULD I KNOW THAT I NEED TO DERIVE FROM THAT CLASS????</td></tr></table><div>This has been reflected in the release notes when CXTPWinApp was added. It is also used in all our samples. We always ask our users to refer to our samples for usage examples as most of the use cases are demonstrated there.</div><div><br></div><div>Regards,</div><div>&nbsp; &nbsp;Alexander</div>]]>
   </description>
   <pubDate>Sun, 05 Nov 2023 15:37:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78815&amp;title=assert-on-shutdown#78815</guid>
  </item> 
  <item>
   <title><![CDATA[Assert on shutdown : I had a similar issue, with a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78814&amp;title=assert-on-shutdown#78814</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9604">matsjansson</a><br /><strong>Subject:</strong> 24402<br /><strong>Posted:</strong> 02 November 2023 at 10:53am<br /><br />I had a similar issue, with a crash in EnterCriticalSection connected to some Markup.<div><br></div><div>The problem was solved by deriving my App class from CXTPWinApp instead of CWinApp.</div><div><br></div><div>BUT HOW SHOULD I KNOW THAT I NEED TO DERIVE FROM THAT CLASS????</div><div><br></div><div>Is there any documentation at all to read?</div><div><br></div>]]>
   </description>
   <pubDate>Thu, 02 Nov 2023 10:53:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78814&amp;title=assert-on-shutdown#78814</guid>
  </item> 
  <item>
   <title><![CDATA[Assert on shutdown : Hi all,I am using v22.1 and experienced...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78802&amp;title=assert-on-shutdown#78802</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2121">jmarcosf</a><br /><strong>Subject:</strong> 24402<br /><strong>Posted:</strong> 24 October 2023 at 12:52pm<br /><br />Hi all,<br>I am using v22.1 and experienced same problem.<br>Just in case it helps this is my ExitInstance() method which solved my problem.<br><div><br></div><div>int CModule::ExitInstance()<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp; CoUninitialize();<br>&nbsp;&nbsp;&nbsp;&nbsp; return CXTPWinApp::ExitInstance();<br>}<br></div>]]>
   </description>
   <pubDate>Tue, 24 Oct 2023 12:52:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78802&amp;title=assert-on-shutdown#78802</guid>
  </item> 
  <item>
   <title><![CDATA[Assert on shutdown : I have also assert whenXTP_DEC...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78799&amp;title=assert-on-shutdown#78799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9468">timop</a><br /><strong>Subject:</strong> 24402<br /><strong>Posted:</strong> 21 October 2023 at 3:37pm<br /><br />I have also assert when&nbsp;<span style="color: rgb111, 0, 138; font-family: &quot;Cascadia Code&quot;; font-size: 13px;">XTP_DECLARE_MARKUP_STRING_CONSTANT&nbsp;</span><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px;">is used.</span><div><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px;">Ctor of&nbsp;</span><span style="color: rgb33, 111, 133; font-family: &quot;Cascadia Code&quot;; font-size: 13px;">CXTPMarkupString&nbsp;</span><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px;">specifies "</span><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px; color: rgb33, 111, 133;">CXTPMarkupObject</span><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px;">::</span><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px; color: darkslategray;">flagNoCom</span><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px;">", but dtor requires COM.&nbsp;</span></div><div><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px;">When COM is initialized, then there is no assert.</span></div><div><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px;"><br></span></div><div><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px;"><br></span></div><div><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px;"><br></span></div><div><span style="font-family: &quot;Cascadia Code&quot;; font-size: 13px;">It is already fixed in version 22.1</span></div>]]>
   </description>
   <pubDate>Sat, 21 Oct 2023 15:37:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78799&amp;title=assert-on-shutdown#78799</guid>
  </item> 
  <item>
   <title><![CDATA[Assert on shutdown : I&amp;#039;m guessing the Markup code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78735&amp;title=assert-on-shutdown#78735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9616">Radix</a><br /><strong>Subject:</strong> 24402<br /><strong>Posted:</strong> 06 July 2023 at 9:34pm<br /><br /><div>I'm guessing the Markup code doesn't properly check for&nbsp;<span style=": rgb248, 248, 252;">#define _XTP_EXCLUDE_MARKUP then</span></div><div><span style=": rgb248, 248, 252;"><br></span></div><div><span style=": rgb248, 248, 252;"><br></span></div><div><span style=": rgb248, 248, 252;"><br></span></div><div><div><span style=": rgb248, 248, 252;"><br></span></div><div><span style=": rgb248, 248, 252;"><br></span></div></div>]]>
   </description>
   <pubDate>Thu, 06 Jul 2023 21:34:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78735&amp;title=assert-on-shutdown#78735</guid>
  </item> 
  <item>
   <title><![CDATA[Assert on shutdown : If the main application class...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78732&amp;title=assert-on-shutdown#78732</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 24402<br /><strong>Posted:</strong> 03 July 2023 at 10:58am<br /><br />If the main application class is derived from CXTPWinApp then&nbsp;<span style=": rgb248, 248, 252;">XTPShutdown must not be called.</span><div><span style=": rgb248, 248, 252;">It is highly recommended to derive&nbsp;</span>CXTPWinApp class because it encapsulates proper ToolkitPro initialization and termination logic. Older ToolkitPro versions didn't use much of it, but future versions will have more important initialization logic added to it, including proper Markup and COM/OLE initialization sequence that is being discussed in this topic.</div>]]>
   </description>
   <pubDate>Mon, 03 Jul 2023 10:58:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78732&amp;title=assert-on-shutdown#78732</guid>
  </item> 
  <item>
   <title><![CDATA[Assert on shutdown : I stumpled upon another issue...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78731&amp;title=assert-on-shutdown#78731</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9615">essess</a><br /><strong>Subject:</strong> 24402<br /><strong>Posted:</strong> 03 July 2023 at 10:27am<br /><br />I stumpled upon another issue that you might want to consider in your fixes.<div>I don't know if you are ever meant to call XTPShutdown() yourself, but if you explicitly call XTPShutdown() in an application that has a CXTPStatusBar then an assert is thrown&nbsp;in CXTPSingletonPointer::GetInstance() on shutdown.<div><br></div><div><div>You can reproduce this issue with the Samples\CommandBars\DialogSample project&nbsp; by adding a call to <font face="Courier New, Courier, mono">XTPShutdown()</font>, for instance at the end of method&nbsp;<span style="font-family: &quot;Courier New&quot;, Courier, mono;">CDialogSampleApp</span><span style="font-family: &quot;Courier New&quot;, Courier, mono;">::InitInstance(),&nbsp;</span>just before the line&nbsp;<font face="Courier New, Courier, mono">return FALSE;.</font></div><div><br></div><div>Method&nbsp;<span style="font-family: &quot;Courier New&quot;, Courier, mono;">CDialogSampleApp</span><span style="font-family: &quot;Courier New&quot;, Courier, mono;">::InitInstance() </span>can be found in the file:</div><div>"C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v22.1.0\Samples\CommandBars\DialogSample\DialogSample.cpp",&nbsp;</div><div><br></div><div><br></div><div><div>Resulting call stack:</div><div><div><div><font face="Courier New, Courier, mono">&gt;<span style="white-space:pre">	</span>DialogSample.exe!CXTPSingletonPointer::GetInstance() Line 67<span style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span style="white-space:pre">	</span>DialogSample.exe!CXTPSingleton&lt;CXTPPaintManager::CGlobalPaintManagerPtr,CXTPSingletonDependencies&lt;CXTPSingleton&lt;CXTPGdiPlus,CXTPSingletonDependencies&lt;CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency&gt;&gt;,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency,CXTPDummySingletonDependency&gt;&gt;::Instance() Line 221<span style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span style="white-space:pre">	</span>DialogSample.exe!CXTPPaintManager::ReleaseInstance() Line 296<span style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span style="white-space:pre">	</span>DialogSample.exe!CXTPStatusBar::~CXTPStatusBar() Line 141<span style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span style="white-space:pre">	</span>&#091;External Code&#093;<span style="white-space:pre">	</span></font></div><div><font face="Courier New, Courier, mono">&nbsp;<span style="white-space:pre">	</span>DialogSample.exe!CDialogSampleApp::InitInstance() Line 96<span style="white-space:pre">	</span>C++</font></div><div><font face="Courier New, Courier, mono">&nbsp;<span style="white-space:pre">	</span>&#091;External Code&#093;<span style="white-space:pre">	</span></font></div><div><font face="Courier New, Courier, mono">&nbsp;<span style="white-space:pre">	</span>DialogSample.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, char * lpCmdLine, int nCmdShow) Line 26<span style="white-space:pre">	</span>C++</font></div></div><div><br></div><div>System Information:</div><div>Toolkit Pro 22.1.0</div><div>Visual Studio 2019</div><div>Dynamic Debug - x64</div></div></div><div>Windows 11 Pro Version 10.0.22621 Build 22621</div><div><br></div></div></div>]]>
   </description>
   <pubDate>Mon, 03 Jul 2023 10:27:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78731&amp;title=assert-on-shutdown#78731</guid>
  </item> 
  <item>
   <title><![CDATA[Assert on shutdown : Thanks everyone for reporting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78730&amp;title=assert-on-shutdown#78730</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 24402<br /><strong>Posted:</strong> 03 July 2023 at 9:39am<br /><br />Thanks everyone for reporting those issues and providing valuable details. It is a known complex problem related to Markup. Unfortunately, due to the nature of the issue it's not reproducible in Codejock samples and it is very specific to various use cases, that's why it takes so long to address it. However we already know most of the causes and are working on the major fix for Markup and related API. We appreciate anyone submitting a sample project that would help us to verify and potentially fix it for that specific use case. You can submit a test project either here or send to support with a reference to the forum thread, even if you have no active maintenance.<div><br></div><div>Thank you in advance.</div>]]>
   </description>
   <pubDate>Mon, 03 Jul 2023 09:39:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24402&amp;PID=78730&amp;title=assert-on-shutdown#78730</guid>
  </item> 
 </channel>
</rss>