<?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 : CXTPImageManagerIconHandle bug!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPImageManagerIconHandle bug!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 13 Apr 2026 02:11:00 +0000</pubDate>
  <lastBuildDate>Tue, 09 Sep 2008 14:56:31 +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=12041</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[CXTPImageManagerIconHandle bug! : Hi, you can change it but you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12041&amp;PID=40861&amp;title=cxtpimagemanagericonhandle-bug#40861</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12041<br /><strong>Posted:</strong> 09 September 2008 at 2:56pm<br /><br />Hi,<DIV>you can change it but you will get a lot of resource leaks.</DIV><DIV>&nbsp;</DIV><DIV>better change your method to get reference</DIV><DIV>&nbsp;</DIV><DIV>bool foo(CXTPImageManagerIconHandle&amp; out)</DIV>]]>
   </description>
   <pubDate>Tue, 09 Sep 2008 14:56:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12041&amp;PID=40861&amp;title=cxtpimagemanagericonhandle-bug#40861</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPImageManagerIconHandle bug! : I disagree. The class is broken...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12041&amp;PID=40860&amp;title=cxtpimagemanagericonhandle-bug#40860</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 12041<br /><strong>Posted:</strong> 09 September 2008 at 2:43pm<br /><br />I disagree. The class is broken since it cannot be returned without destroying the icon.]]>
   </description>
   <pubDate>Tue, 09 Sep 2008 14:43:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12041&amp;PID=40860&amp;title=cxtpimagemanagericonhandle-bug#40860</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPImageManagerIconHandle bug! : Hi,  Its&amp;#039;wrong. Don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12041&amp;PID=40759&amp;title=cxtpimagemanagericonhandle-bug#40759</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12041<br /><strong>Posted:</strong> 08 September 2008 at 3:27am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Its'wrong. Don't change it.</DIV>]]>
   </description>
   <pubDate>Mon, 08 Sep 2008 03:27:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12041&amp;PID=40759&amp;title=cxtpimagemanagericonhandle-bug#40759</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPImageManagerIconHandle bug! :   CXTPImageManagerIconHandle...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12041&amp;PID=40649&amp;title=cxtpimagemanagericonhandle-bug#40649</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 12041<br /><strong>Posted:</strong> 02 September 2008 at 4:14am<br /><br /><FONT color=#010001 size=2><DIV><DIV>CXTPImageManagerIconHandle foo()</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp;&nbsp; CXTPImageManagerIconHandle hIcon;</DIV></DIV><DIV>&nbsp;&nbsp;&nbsp; hIcon = ...</DIV><DIV>&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp; return hIcon; // Destructor called for hIcon</DIV><DIV>}</DIV><DIV><FONT color=#010001 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2>hIcon.m_bClearHandles == TRUE... so the returned object will be corrupted. I believe you should use auto_ptr-thinking here!</FONT></DIV><DIV><FONT color=#010001 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2>In copy-constructor and assignment-operator the right-hand-side variable m<FONT color=#010001 size=2>_bClearHandles should be set to FALSE!</FONT></DIV></FONT><DIV>&nbsp;</DIV><DIV>h1 = h2; // h2.m<FONT color=#010001 size=2>_bClearHandles = FALSE</FONT></DIV><DIV>&nbsp;</DIV><DIV>My solution:</DIV><DIV><strong>mutable</strong> BOOL m<FONT color=#010001 size=2>_bClearHandles;</FONT></DIV><DIV><FONT color=#010001 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#010001 size=2>CXTPImageManagerIconHandle</FONT><FONT color=#000000 size=2>::</FONT><FONT color=#010001 size=2>CXTPImageManagerIconHandle</FONT><FONT color=#000000 size=2>(</FONT><FONT color=#0000ff size=2>const</FONT><FONT color=#000000 size=2> </FONT><FONT color=#010001 size=2>CXTPImageManagerIconHandle</FONT><FONT color=#000000 size=2>&amp; </FONT><FONT color=#010001 size=2>hHandle</FONT><FONT size=2><FONT color=#000000>)</DIV><DIV></DIV><DIV>{</DIV><DIV>&nbsp;&nbsp;&nbsp; ...</DIV><DIV>&nbsp;&nbsp;&nbsp; <strong>hHandle.m_bClearHandles = FALSE;</strong></DIV><DIV>}</FONT></FONT></DIV></FONT>]]>
   </description>
   <pubDate>Tue, 02 Sep 2008 04:14:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12041&amp;PID=40649&amp;title=cxtpimagemanagericonhandle-bug#40649</guid>
  </item> 
 </channel>
</rss>