<?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 : Asserts in 24.0 beta</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Asserts in 24.0 beta]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 14:56:44 +0000</pubDate>
  <lastBuildDate>Fri, 24 May 2024 10:44:21 +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=24479</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[Asserts in 24.0 beta : Does your app derive from CWinApp...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24479&amp;PID=78941&amp;title=asserts-in-24-0-beta#78941</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3002">rconn</a><br /><strong>Subject:</strong> 24479<br /><strong>Posted:</strong> 24 May 2024 at 10:44am<br /><br />Does your app derive from CWinApp or CXTPWinApp?&nbsp; My older ones were using CWinApp (which is what the CJ samples used years ago); when I changed to CXTPWinApp the assert went away.<div><br></div>]]>
   </description>
   <pubDate>Fri, 24 May 2024 10:44:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24479&amp;PID=78941&amp;title=asserts-in-24-0-beta#78941</guid>
  </item> 
  <item>
   <title><![CDATA[Asserts in 24.0 beta : In version 19.3.0 we call CXTPPaintManager::SetTheme(...)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24479&amp;PID=78938&amp;title=asserts-in-24-0-beta#78938</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9615">essess</a><br /><strong>Subject:</strong> 24479<br /><strong>Posted:</strong> 23 May 2024 at 9:12am<br /><br />In version 19.3.0 we call CXTPPaintManager::SetTheme(...) inside dynamically loaded DLLs to set the same Toolkit Pro theme as the main thread.<div><br></div><div>Now in v24.0.0.042924 (beta 1) we get the same assert and crash as <b>rconn</b> in GetComInitFlags:</div><div><br></div><div><b>XTPApplication.cpp:</b></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>int CXTPApplication::GetComInitFlags() const</div><div>{</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>_ASSERTE(NULL != m_pComInit); &lt;&lt;&lt;&lt;</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>return m_pComInit-&gt;GetInitFlags();</span></div><div>}</div></div><div></pre></td></tr></table></div><div><br></div><div>Continuing from the assert causes a crash at the location:</div><div><br></div><div><b>XTPSystemHelpers.h:</b></div><div><div>AFX_INLINE int CXTPComInitializer::GetInitFlags() const</div><div>{</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>return m_xtpComInit; &lt;&lt; this was nullptr</span></div><div>}</div></div><div><br></div><div>Why am I getting this issue in v24?</div><div><br></div><div>Removing the call to "SetTheme()" seems to help, but I haven't been able to verify if the theme is then set correctly.</div>]]>
   </description>
   <pubDate>Thu, 23 May 2024 09:12:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24479&amp;PID=78938&amp;title=asserts-in-24-0-beta#78938</guid>
  </item> 
  <item>
   <title><![CDATA[Asserts in 24.0 beta : In order to allow ToolkitPro to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24479&amp;PID=78931&amp;title=asserts-in-24-0-beta#78931</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 24479<br /><strong>Posted:</strong> 20 May 2024 at 11:02am<br /><br /><div>In order to allow ToolkitPro to use COM/OLE during its initialization and to provide a way to have a consistent COM/OLE initialization methods for all application threads, the new ToolkitPro v24 initializes it itself from CXTPWinApp constructor. The new CXTPWinApp::CXTPWinApp constructor now takes an optional argument of XTPComInit enumeriation type. If no argument is provided that the default xtpComInitAfxOle is used. For more other COM/OLE initalization methods refer to XTPComInit documentation.</div><div><br></div><div>For example:</div><div><br></div><div>class CMyApp : CXTPWinApp {</div><div>&nbsp; CMyApp() : CXTPWinApp(xtpComInitAfxOle) { ... }</div><div>&nbsp; ...</div><div>}</div><div><br></div><div>class CMyThread : CWinThread {</div><div>&nbsp;virtual BOOL Run() {</div><div>&nbsp; &nbsp;CXTPComInitializer comInit(xtpComInitAfxOle);</div><div>&nbsp; &nbsp;...</div><div>&nbsp;}</div><div>}</div><div><br></div><div>Regards,</div><div>&nbsp; Alexander</div>]]>
   </description>
   <pubDate>Mon, 20 May 2024 11:02:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24479&amp;PID=78931&amp;title=asserts-in-24-0-beta#78931</guid>
  </item> 
  <item>
   <title><![CDATA[Asserts in 24.0 beta : All of my apps are now asserting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24479&amp;PID=78930&amp;title=asserts-in-24-0-beta#78930</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3002">rconn</a><br /><strong>Subject:</strong> 24479<br /><strong>Posted:</strong> 19 May 2024 at 5:30pm<br /><br />All of my apps are now asserting when compiled under the 24.0 beta:<div><div><br></div><div>int CXTPApplication::GetComInitFlags() const</div><div>{</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>_ASSERTE(NULL != m_pComInit);</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>return m_pComInit-&gt;GetInitFlags();</span></div><div>}</div></div><div><br></div><div>They work with 22.1.&nbsp; I'm calling AfxOleInit before the XTP code is called; is there something else that needs to be done w/24.0?</div>]]>
   </description>
   <pubDate>Sun, 19 May 2024 17:30:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24479&amp;PID=78930&amp;title=asserts-in-24-0-beta#78930</guid>
  </item> 
 </channel>
</rss>