<?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 : FIXED: Assert on Shutdown with 20.3</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : FIXED: Assert on Shutdown with 20.3]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 11:01:42 +0000</pubDate>
  <lastBuildDate>Mon, 06 Feb 2023 10:32:16 +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=24293</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[FIXED: Assert on Shutdown with 20.3 : Thanks everyone who reported this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78603&amp;title=fixed-assert-on-shutdown-with-20-3#78603</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 24293<br /><strong>Posted:</strong> 06 February 2023 at 10:32am<br /><br />Thanks everyone who reported this and related issues here and in support. We've added a number of related fixes and all those use cases that were managed to reproduce have been fixed. The fixes will be included into the upcoming v22.1 update that hopefully will be released in February. After you get the update please re-test all use cases when those crashes occurred in your project and provided as much as possible details about the remaining crashes so we can check and fix them quickly.<div><br></div><div>Thank you.</div><div>Regards,</div><div>&nbsp; &nbsp;Alexander</div>]]>
   </description>
   <pubDate>Mon, 06 Feb 2023 10:32:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78603&amp;title=fixed-assert-on-shutdown-with-20-3#78603</guid>
  </item> 
  <item>
   <title><![CDATA[FIXED: Assert on Shutdown with 20.3 : After updating to 22.0.0, I still...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78552&amp;title=fixed-assert-on-shutdown-with-20-3#78552</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7348">MrPhil</a><br /><strong>Subject:</strong> 24293<br /><strong>Posted:</strong> 07 November 2022 at 3:32pm<br /><br />After updating to 22.0.0, I still have this issue.]]>
   </description>
   <pubDate>Mon, 07 Nov 2022 15:32:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78552&amp;title=fixed-assert-on-shutdown-with-20-3#78552</guid>
  </item> 
  <item>
   <title><![CDATA[FIXED: Assert on Shutdown with 20.3 : This problem was fixed using the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78544&amp;title=fixed-assert-on-shutdown-with-20-3#78544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7348">MrPhil</a><br /><strong>Subject:</strong> 24293<br /><strong>Posted:</strong> 26 October 2022 at 12:13pm<br /><br />This problem was fixed using the code fix, but has returned. I have not rebuilt ToolkitPro since we fixed the issue.<div><br></div><div>I was told to expect the update in October. Is that still the case?</div>]]>
   </description>
   <pubDate>Wed, 26 Oct 2022 12:13:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78544&amp;title=fixed-assert-on-shutdown-with-20-3#78544</guid>
  </item> 
  <item>
   <title><![CDATA[FIXED: Assert on Shutdown with 20.3 : Thank you for sharing this workaround....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78450&amp;title=fixed-assert-on-shutdown-with-20-3#78450</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8956">MarkusA</a><br /><strong>Subject:</strong> 24293<br /><strong>Posted:</strong> 07 June 2022 at 11:40am<br /><br />Thank you for sharing this workaround. Problem solved.]]>
   </description>
   <pubDate>Tue, 07 Jun 2022 11:40:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78450&amp;title=fixed-assert-on-shutdown-with-20-3#78450</guid>
  </item> 
  <item>
   <title><![CDATA[FIXED: Assert on Shutdown with 20.3 : I can confirm this problem with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78449&amp;title=fixed-assert-on-shutdown-with-20-3#78449</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9250">bricaro</a><br /><strong>Subject:</strong> 24293<br /><strong>Posted:</strong> 07 June 2022 at 10:04am<br /><br /><div>I can confirm this problem with both 20.3 and 19.3. Implemented the fix, suggested by <span id="userPro4" ="msgSidePro" title="View Drop Down">docontrol,&nbsp; </span>in 20.3 and it solved the problem for me.<span id="userPro4" ="msgSidePro" title="View Drop Down"><br></span></div>]]>
   </description>
   <pubDate>Tue, 07 Jun 2022 10:04:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78449&amp;title=fixed-assert-on-shutdown-with-20-3#78449</guid>
  </item> 
  <item>
   <title><![CDATA[FIXED: Assert on Shutdown with 20.3 : I received this workaround from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78448&amp;title=fixed-assert-on-shutdown-with-20-3#78448</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5742">docontrol</a><br /><strong>Subject:</strong> 24293<br /><strong>Posted:</strong> 03 June 2022 at 2:15pm<br /><br />I received this workaround from Alexander at CodeJock and it solved the problem in my case:<div><br></div><div><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">Hello Ronnie,</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">That was a known issue and it has already been fixed and the fix will be available in the next version.</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">So you don't wait for the next version you can integrate a simple patch. All you need is to replace the body of CXTPMarkupObject::CXTPMarkupObject(int nFlags) constructor in \Source\Markup\XTPMarkupObject.cpp with the following below code:</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">{</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">&nbsp;if (0 == (nFlags &amp; flagNoCom))</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">&nbsp;{</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">&nbsp;&nbsp;EnableAutomation();</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">#ifdef _XTP_ACTIVEX</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">&nbsp;&nbsp;EnableTypeLib();</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">#endif</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">&nbsp;}</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">}</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">After adding this change don't forget to re-build the configurations you use.</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">Please confirm if the fix works for you.</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">Thank you.</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">Regards,</span><br style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px;"><span style="font-family: &quot;Courier New&quot;, sans-serif; font-size: 11px; : rgb204, 204, 204;">&nbsp;Alexander&nbsp;&nbsp;</span></div>]]>
   </description>
   <pubDate>Fri, 03 Jun 2022 14:15:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78448&amp;title=fixed-assert-on-shutdown-with-20-3#78448</guid>
  </item> 
  <item>
   <title><![CDATA[FIXED: Assert on Shutdown with 20.3 : I am seeing the same issue here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78447&amp;title=fixed-assert-on-shutdown-with-20-3#78447</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5742">docontrol</a><br /><strong>Subject:</strong> 24293<br /><strong>Posted:</strong> 03 June 2022 at 7:04am<br /><br />I am seeing the same issue here after an upgrade of VS 2022 17.1.6 to 17.2.3.]]>
   </description>
   <pubDate>Fri, 03 Jun 2022 07:04:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78447&amp;title=fixed-assert-on-shutdown-with-20-3#78447</guid>
  </item> 
  <item>
   <title><![CDATA[FIXED: Assert on Shutdown with 20.3 : +1 We see the same after migration...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78445&amp;title=fixed-assert-on-shutdown-with-20-3#78445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 24293<br /><strong>Posted:</strong> 02 June 2022 at 5:40am<br /><br />+1 <br>We see the same after migration from 19.1 to 20.3<br>]]>
   </description>
   <pubDate>Thu, 02 Jun 2022 05:40:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78445&amp;title=fixed-assert-on-shutdown-with-20-3#78445</guid>
  </item> 
  <item>
   <title><![CDATA[FIXED: Assert on Shutdown with 20.3 : Hello,After updating Visual Studio...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78443&amp;title=fixed-assert-on-shutdown-with-20-3#78443</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8956">MarkusA</a><br /><strong>Subject:</strong> 24293<br /><strong>Posted:</strong> 01 June 2022 at 5:19am<br /><br />Hello,<div><br></div><div>After updating Visual Studio 2022 from Version 17.1.6 to 17.2.2 we get many Debug Asserts on Application Shutdown with Codejock 20.3.0 when your global Markup-Strings are destructed.</div><div><br></div><div><img src="uploads/8956/DebugAssertMarkupString.png" height="348" width="973" border="0" /><br></div><div><br></div><div>Callstack:</div><div><span style=": rgb240, 241, 245;"><table width="99%"><tr><td><pre class="BBcode"></span><span style=": rgb240, 241, 245;">&gt;</span><span style=": rgb240, 241, 245; white-space: pre;">	</span><span style=": rgb240, 241, 245;">mfc140ud.dll!CCmdTarget::ExternalDisconnect() Line 455</span><span style=": rgb240, 241, 245; white-space: pre;">	</span><span style=": rgb240, 241, 245;">C++</span><span style=": rgb240, 241, 245;"><div>&nbsp;<span style="white-space:pre">	</span>mfc140ud.dll!COleDispatchImpl::Disconnect() Line 441<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>mfc140ud.dll!CCmdTarget::~CCmdTarget() Line 39<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro2030vc170UD.dll!CXTPCmdTarget::~CXTPCmdTarget()<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro2030vc170UD.dll!CXTPMarkupObject::~CXTPMarkupObject() Line 731<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro2030vc170UD.dll!CXTPMarkupString::~CXTPMarkupString() Line 198<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro2030vc170UD.dll!`dynamic atexit destructor for 'g_xtpMarkStringWrapWithOverflow''()<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ucrtbased.dll!_execute_onexit_table::__l2::&lt;lambda&gt;() Line 206<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ucrtbased.dll!__crt_seh_guarded_call&lt;int&gt;::operator()&lt;void &lt;lambda&gt;(void),int &lt;lambda&gt;(void) &amp;,void &lt;lambda&gt;(void)&gt;(__acrt_lock_and_call::__l2::void &lt;lambda&gt;(void) &amp;&amp; setup, _execute_onexit_table::__l2::int &lt;lambda&gt;(void) &amp; action, __acrt_lock_and_call::__l2::void &lt;lambda&gt;(void) &amp;&amp; cleanup) Line 204<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ucrtbased.dll!__acrt_lock_and_call&lt;int &lt;lambda&gt;(void)&gt;(const __acrt_lock_id lock_id, _execute_onexit_table::__l2::int &lt;lambda&gt;(void) &amp;&amp; action) Line 978<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ucrtbased.dll!_execute_onexit_table(_onexit_table_t * table) Line 160<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro2030vc170UD.dll!__scrt_dllmain_uninitialize_c() Line 398<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro2030vc170UD.dll!dllmain_crt_process_detach(const bool is_terminating) Line 182<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro2030vc170UD.dll!dllmain_crt_dispatch(HINSTANCE__ * const instance, const unsigned long reason, void * const reserved) Line 220<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro2030vc170UD.dll!dllmain_dispatch(HINSTANCE__ * const instance, const unsigned long reason, void * const reserved) Line 293<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ToolkitPro2030vc170UD.dll!_DllMainCRTStartup(HINSTANCE__ * const instance, const unsigned long reason, void * const reserved) Line 334<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ntdll.dll!_LdrxCallInitRoutine@16()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>ntdll.dll!LdrpCallInitRoutine()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>ntdll.dll!LdrShutdownProcess()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>ntdll.dll!RtlExitUserProcess()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>kernel32.dll!_ExitProcessImplementation@4()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>ucrtbased.dll!exit_or_terminate_process(const unsigned int return_code) Line 144<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ucrtbased.dll!common_exit(const int return_code, const _crt_exit_cleanup_mode cleanup_mode, const _crt_exit_return_mode return_mode) Line 280<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ucrtbased.dll!exit(int return_code) Line 293<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ShortcutBar.exe!__scrt_common_main_seh() Line 297<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ShortcutBar.exe!__scrt_common_main() Line 331<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>ShortcutBar.exe!wWinMainCRTStartup(void * __formal) Line 17<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>kernel32.dll!@BaseThreadInitThunk@12()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>ntdll.dll!__RtlUserThreadStart()<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>ntdll.dll!__RtlUserThreadStart@8()<span style="white-space:pre">	</span>Unknown</div></pre></td></tr></table></span></div><div><br></div><div>The call to AFXASSUME was added by Microsoft to their CCmdTarget-Implementation with the new MFC Version 14.32.31326 delivered with 17.2.2 (I assume it comes with 17.2.0, but can't verify this). The Version delivered with Visual Studio 17.1.6 (MFC&nbsp;14.31.31103) does not have this line of code.</div><div><br></div><div>This happens because the Markup-Strings were destroyed after COM was unitialized by MFC -&gt; Can be reproduced with your Shortcutbar-Example: Just start a debug of it in Visual Studio 2022 17.2.2 and immediately close the Application via the Close-Button.</div><div><br></div><div>Btw. if SkinFramework is used the Application crashes with an Access Violation instead of showing the Debug Assertion because the Skinmanager tries to hook the Debug Assertion Dialog - which might be impossible because most parts of the application should not exist anymore at this time -&gt; Just try to debug your SkinControls Sample and close the Application. This happens at least with the legacy API hook as we can't use the new Detours hook.</div><div><br></div><div>Greetings</div><div>Markus</div>]]>
   </description>
   <pubDate>Wed, 01 Jun 2022 05:19:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24293&amp;PID=78443&amp;title=fixed-assert-on-shutdown-with-20-3#78443</guid>
  </item> 
 </channel>
</rss>