<?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 Re: Dispose() not working on core objects created on a SDE database (oracle) in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dispose-not-working-on-core-objects-created-on-a/m-p/1542454#M12120</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/311435"&gt;@MartinTyberg&lt;/a&gt;&amp;nbsp;, Have you&amp;nbsp;&lt;SPAN&gt;reviewed&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#resource-management" target="_blank" rel="noopener"&gt;the conceptual doc&lt;/A&gt;&amp;nbsp;describing&lt;/SPAN&gt;&amp;nbsp;how Pro SDK handles the resources? Your code might&amp;nbsp;&lt;SPAN&gt;unintentionally acquires &lt;/SPAN&gt;Core.Data instances&lt;SPAN&gt; . Could you share your code snippet?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 14:35:27 GMT</pubDate>
    <dc:creator>Aashis</dc:creator>
    <dc:date>2024-09-25T14:35:27Z</dc:date>
    <item>
      <title>Dispose() not working on core objects created on a SDE database (oracle)</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dispose-not-working-on-core-objects-created-on-a/m-p/1541933#M12115</link>
      <description>&lt;P&gt;Hi - I'm noticing that if I create an object derived from&amp;nbsp;CoreObjectsBase such as FeatureClassDefinition (via FeatureClass.GetDefinition()), and I call Dispose() on it when I'm done, its memory is released if working on a File Geodatabase. However, the memory is not released (tested in ArcGIS 3.3) if working on a SDE geodatabase (oracle in my case). Has anyone observed this? And if so, is this a bug and/or is there a way to overcome this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 14:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/dispose-not-working-on-core-objects-created-on-a/m-p/1541933#M12115</guid>
      <dc:creator>MartinTyberg</dc:creator>
      <dc:date>2024-09-24T14:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dispose() not working on core objects created on a SDE database (oracle)</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dispose-not-working-on-core-objects-created-on-a/m-p/1542454#M12120</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/311435"&gt;@MartinTyberg&lt;/a&gt;&amp;nbsp;, Have you&amp;nbsp;&lt;SPAN&gt;reviewed&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#resource-management" target="_blank" rel="noopener"&gt;the conceptual doc&lt;/A&gt;&amp;nbsp;describing&lt;/SPAN&gt;&amp;nbsp;how Pro SDK handles the resources? Your code might&amp;nbsp;&lt;SPAN&gt;unintentionally acquires &lt;/SPAN&gt;Core.Data instances&lt;SPAN&gt; . Could you share your code snippet?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 14:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/dispose-not-working-on-core-objects-created-on-a/m-p/1542454#M12120</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2024-09-25T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dispose() not working on core objects created on a SDE database (oracle)</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/dispose-not-working-on-core-objects-created-on-a/m-p/1542474#M12121</link>
      <description>&lt;P&gt;Hi Aashis,&lt;/P&gt;&lt;P&gt;Thank you for your response. I've read the conceptual document before and have been careful to follow its guidelines. Here is my code snippet that leaks for an SDE db (Oracle) but not for a file gdb:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;FeatureLayer featureLayer = m_mapView.Map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;().Where(layer =&amp;gt; layer.Name == mapLayer.Name).FirstOrDefault();
using (FeatureClass featureClass = featureLayer.GetFeatureClass())
{
    using (FeatureClassDefinition featureClassDefinition = featureClass.GetDefinition())
     {
         if (featureClassDefinition.GetShapeType() == ArcGIS.Core.Geometry.GeometryType.Multipoint)
	     {
		//do something
	     }		
      }
}
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Sep 2024 14:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/dispose-not-working-on-core-objects-created-on-a/m-p/1542474#M12121</guid>
      <dc:creator>MartinTyberg</dc:creator>
      <dc:date>2024-09-25T14:02:27Z</dc:date>
    </item>
  </channel>
</rss>

