<?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 : Gallery.Items.Icons.RemoveAll() works incorrectly</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Gallery.Items.Icons.RemoveAll() works incorrectly]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 05:47:55 +0000</pubDate>
  <lastBuildDate>Fri, 22 Feb 2008 11:20:24 +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=9665</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[Gallery.Items.Icons.RemoveAll() works incorrectly : Thanks.  I have use AddBitmap()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9665&amp;PID=31477&amp;title=gallery-items-icons-removeall-works-incorrectly#31477</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3728">San0k</a><br /><strong>Subject:</strong> 9665<br /><strong>Posted:</strong> 22 February 2008 at 11:20am<br /><br />Thanks.<br /><br />I have use AddBitmap() method instead AddIcon() and bitmap to icon convertion.]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 11:20:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9665&amp;PID=31477&amp;title=gallery-items-icons-removeall-works-incorrectly#31477</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery.Items.Icons.RemoveAll() works incorrectly : Think you need release your icon.GetHicon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9665&amp;PID=31470&amp;title=gallery-items-icons-removeall-works-incorrectly#31470</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9665<br /><strong>Posted:</strong> 22 February 2008 at 9:10am<br /><br />Think you need release your <EM>icon.GetHicon also.<DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>If you don't have 11.2.2 release I very recommend you update. See release notes for ImageManager.</DIV></EM>]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 09:10:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9665&amp;PID=31470&amp;title=gallery-items-icons-removeall-works-incorrectly#31470</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery.Items.Icons.RemoveAll() works incorrectly : Hello,  I need dynamicly update...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9665&amp;PID=31465&amp;title=gallery-items-icons-removeall-works-incorrectly#31465</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3728">San0k</a><br /><strong>Subject:</strong> 9665<br /><strong>Posted:</strong> 22 February 2008 at 7:30am<br /><br />Hello,<br /><br />I need dynamicly update images in gallery.<br />I use for do it this code snip:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em>Gallery.Items.Icons.AddIcon(icon.GetHicon().ToInt32(), item.Id, XTPImageState.xtpImageNormal);  </em><br /><br />Before it I call <em>RemoveAll()</em> method of Icons collection, which really remove icons from collection (Count equals zero).<br /><br />BUT!<br />When I look on Windows Task Manager "GDI Objects" column I view constantly growing value of objects. And when this value reach a 9 999 objects - application crash!<br />All other references correctly disposed.<br />Growing occur at AddIcon() string. <br /><br /><img src="uploads/20080222_072645_gdi_&#111;bjects.PNG" border="0"><br /><br />QUESTION:<br />How I can correctly remove Icons???]]>
   </description>
   <pubDate>Fri, 22 Feb 2008 07:30:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9665&amp;PID=31465&amp;title=gallery-items-icons-removeall-works-incorrectly#31465</guid>
  </item> 
 </channel>
</rss>