<?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 : CXTPButton::SetIcon(nullptr) crashes in 19.2</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : CXTPButton::SetIcon(nullptr) crashes in 19.2]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 01:58:13 +0000</pubDate>
  <lastBuildDate>Wed, 24 Jun 2020 15:20:35 +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=24004</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[CXTPButton::SetIcon(nullptr) crashes in 19.2 : Thank you for reporting the issue....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24004&amp;PID=77740&amp;title=cxtpbuttonseticonnullptr-crashes-in-19-2#77740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 24004<br /><strong>Posted:</strong> 24 June 2020 at 3:20pm<br /><br /><div>Thank you for reporting the issue. The problem has been addressed for the next update.</div><div><br></div><div>Regards,</div><div>&nbsp; Alexander</div>]]>
   </description>
   <pubDate>Wed, 24 Jun 2020 15:20:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24004&amp;PID=77740&amp;title=cxtpbuttonseticonnullptr-crashes-in-19-2#77740</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPButton::SetIcon(nullptr) crashes in 19.2 : Hi,we got a crash when upgrading...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24004&amp;PID=77737&amp;title=cxtpbuttonseticonnullptr-crashes-in-19-2#77737</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1263">Fredrik</a><br /><strong>Subject:</strong> 24004<br /><strong>Posted:</strong> 24 June 2020 at 4:17am<br /><br />Hi,<br><br>we got a crash when upgrading to 19.2 due to code that removes an icon from a CXTPButton by calling it with SetIcon(CSize(0,0), nullptr); Could you guys add a nullptr check?<br><br><br><table width="99%"><tr><td><pre class="BBcode"><br><div>BOOL CXTPButton::SetIcon(CSize size, CXTPImageManagerIcon* pIcon, BOOL bRedraw /*= TRUE*/)</div><div>{</div><div><span style="white-space:pre">	</span>// Construct the icon manager.</div><div><span style="white-space:pre">	</span>CMDTARGET_RELEASE(m_pIcon);</div><div><br></div><div><span style="white-space:pre">	</span>if (pIcon-&gt;IsVectorIcon()) // add check for nullptr</div><div><span style="white-space:pre">		</span>m_szVectorIcon = size;</div><div><br></div><div><span style="white-space:pre">	</span>m_pIcon = pIcon;</div><div><br></div><div><span style="white-space:pre">	</span>// Redraw the button.</div><div><span style="white-space:pre">	</span>if (bRedraw)</div><div><span style="white-space:pre">		</span>RedrawButton();</div><div><br></div><div><span style="white-space:pre">	</span>return TRUE;</div><div>}</pre></td></tr></table></div>]]>
   </description>
   <pubDate>Wed, 24 Jun 2020 04:17:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24004&amp;PID=77737&amp;title=cxtpbuttonseticonnullptr-crashes-in-19-2#77737</guid>
  </item> 
 </channel>
</rss>