<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GraphicTracker Items no longer in collection in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/graphictracker-items-no-longer-in-collection/m-p/290082#M7527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am running into a problem where graphictracker items are being removed from the graphictracker collection without me specifically removing them, causing a Memory Access Violation exception and crashing my app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I maintain a collection of IDs, call it "MyIDCollection", that are added to and removed in conjunction with adding and removing items from the GT collection.&amp;nbsp; I make sure that the id is removed from MyIDCollection BEFORE I remove the item from the GT collection. And I make sure the item is added to the GTCollection before adding it to MyIDCollection, thus keeping the 2 collections in sync. I wish the GT class had a "Contains" method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But occasionally when I call graphictracker.remove(id) I get either a 'Value not contained in collection' exception or a Memory Access Violation exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone seen this behavior before?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2011 16:48:16 GMT</pubDate>
    <dc:creator>BillLanza</dc:creator>
    <dc:date>2011-10-06T16:48:16Z</dc:date>
    <item>
      <title>GraphicTracker Items no longer in collection</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/graphictracker-items-no-longer-in-collection/m-p/290082#M7527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am running into a problem where graphictracker items are being removed from the graphictracker collection without me specifically removing them, causing a Memory Access Violation exception and crashing my app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I maintain a collection of IDs, call it "MyIDCollection", that are added to and removed in conjunction with adding and removing items from the GT collection.&amp;nbsp; I make sure that the id is removed from MyIDCollection BEFORE I remove the item from the GT collection. And I make sure the item is added to the GTCollection before adding it to MyIDCollection, thus keeping the 2 collections in sync. I wish the GT class had a "Contains" method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But occasionally when I call graphictracker.remove(id) I get either a 'Value not contained in collection' exception or a Memory Access Violation exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone seen this behavior before?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 16:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/graphictracker-items-no-longer-in-collection/m-p/290082#M7527</guid>
      <dc:creator>BillLanza</dc:creator>
      <dc:date>2011-10-06T16:48:16Z</dc:date>
    </item>
  </channel>
</rss>

