<?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: Releasing feature class after using MakeFeatureLayer in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/releasing-feature-class-after-using/m-p/466735#M12666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The IGPUtilities.RemoveInternalLayer&amp;nbsp; worked but even a better solution was to run the GP delete tool on the in memory layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Nov 2013 04:48:51 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2013-11-17T04:48:51Z</dc:date>
    <item>
      <title>Releasing feature class after using MakeFeatureLayer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/releasing-feature-class-after-using/m-p/466732#M12663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcObjects to call GP tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Most tools does not leave any locks and the data can be deleted after the tool is done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The MakeFeatureLayer is different. It gets a feature class and return a string so there is no COM object I can release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did release the feature class and the workspace but the feature class is still locked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to cast the IGeoProcessorResult.getOutput into ILayer so I can release it but it fail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I can get the feature class using DecodeFeatureLayer but it does not help me to clean up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using MakeFeatureLayer, do something with that layer and then would like to delete the feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 13:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/releasing-feature-class-after-using/m-p/466732#M12663</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2013-11-12T13:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Releasing feature class after using MakeFeatureLayer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/releasing-feature-class-after-using/m-p/466733#M12664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might want to try forcing a garbage collect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 17:03:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/releasing-feature-class-after-using/m-p/466733#M12664</guid>
      <dc:creator>JohnStephens</dc:creator>
      <dc:date>2013-11-12T17:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Releasing feature class after using MakeFeatureLayer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/releasing-feature-class-after-using/m-p/466734#M12665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't know if this will help but have a look at &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;IGPUtilities.RemoveInternalLayer &lt;/SPAN&gt;&lt;SPAN&gt;Method?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 18:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/releasing-feature-class-after-using/m-p/466734#M12665</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-11-12T18:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Releasing feature class after using MakeFeatureLayer</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/releasing-feature-class-after-using/m-p/466735#M12666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The IGPUtilities.RemoveInternalLayer&amp;nbsp; worked but even a better solution was to run the GP delete tool on the in memory layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mody&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 04:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/releasing-feature-class-after-using/m-p/466735#M12666</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2013-11-17T04:48:51Z</dc:date>
    </item>
  </channel>
</rss>

