<?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 The GeoProcessor just keeps on creating &amp;amp;quot;results&amp;amp;quot;, how to stop? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-geoprocessor-just-keeps-on-creating-amp-quot/m-p/42888#M1110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a tough one. I've written some VBA (because pythons method of spawning sub-processes meant my code was going to take 62 days...) and I've noticed the memory usage just keeps on creeping up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At one point I use the geoprocessor to call the Select Tool to create a new shapefile containing 1 point (Which is then used as a pour point for catchment generation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I create and set the geoprocessor as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Set pGP = New GeoProcessor
With pGP
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .OverwriteOutput = True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .AddOutputsToMap = False
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .LogHistory = False
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .TemporaryMapLayers = True
End With&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I call the tool as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
query = Chr(34) &amp;amp; "ID" &amp;amp; Chr(34) &amp;amp; " = " &amp;amp; CStr(ID)
With pVA
&amp;nbsp;&amp;nbsp;&amp;nbsp; .RemoveAll
&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add pFeatureLayer_Sites.FeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add "in_memory\tempSP"
&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add query
End With
pStatusbar.Message(0) = "Extracting a single site to in_memory"
Set pGPR = pGP.Execute("Select", pVA, Nothing)
Set pFeatureClass = pGPUtils.OpenFeatureClassFromString(pGPR.GetOutput(0).GetAsText)
Set pGeoDataSetPP = pFeatureClass&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I release the memory as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
With pGPUtils
&amp;nbsp;&amp;nbsp;&amp;nbsp; .RemoveInternalLayer "tempSP"
&amp;nbsp;&amp;nbsp;&amp;nbsp; .ClearInMemoryWorkspace
&amp;nbsp;&amp;nbsp;&amp;nbsp; .RemoveInternalData
&amp;nbsp;&amp;nbsp;&amp;nbsp; .ReleaseInternals
End With&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I even kill off the geoprocessor within the loop as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Set pGP = Nothing
pGPUtils.ReleaseInternals&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Arcmap Tools &amp;gt; options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Log geoprocessing is ticked off, results are temporary and results management is set to "Never Save"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So at all stages I say NO results, NO logging yet the Select tool still adds an entry in the ArcToolbox results Tab which overtime consumes memory. I need to run this tool a lot of times for a long time but I just can't make ArcMap not Log a result!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas, any undocumented tips or is this a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Sep 2010 17:22:42 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2010-09-01T17:22:42Z</dc:date>
    <item>
      <title>The GeoProcessor just keeps on creating &amp;quot;results&amp;quot;, how to stop?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-geoprocessor-just-keeps-on-creating-amp-quot/m-p/42888#M1110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a tough one. I've written some VBA (because pythons method of spawning sub-processes meant my code was going to take 62 days...) and I've noticed the memory usage just keeps on creeping up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At one point I use the geoprocessor to call the Select Tool to create a new shapefile containing 1 point (Which is then used as a pour point for catchment generation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I create and set the geoprocessor as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Set pGP = New GeoProcessor
With pGP
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .OverwriteOutput = True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .AddOutputsToMap = False
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .LogHistory = False
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .TemporaryMapLayers = True
End With&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I call the tool as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
query = Chr(34) &amp;amp; "ID" &amp;amp; Chr(34) &amp;amp; " = " &amp;amp; CStr(ID)
With pVA
&amp;nbsp;&amp;nbsp;&amp;nbsp; .RemoveAll
&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add pFeatureLayer_Sites.FeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add "in_memory\tempSP"
&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add query
End With
pStatusbar.Message(0) = "Extracting a single site to in_memory"
Set pGPR = pGP.Execute("Select", pVA, Nothing)
Set pFeatureClass = pGPUtils.OpenFeatureClassFromString(pGPR.GetOutput(0).GetAsText)
Set pGeoDataSetPP = pFeatureClass&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I release the memory as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
With pGPUtils
&amp;nbsp;&amp;nbsp;&amp;nbsp; .RemoveInternalLayer "tempSP"
&amp;nbsp;&amp;nbsp;&amp;nbsp; .ClearInMemoryWorkspace
&amp;nbsp;&amp;nbsp;&amp;nbsp; .RemoveInternalData
&amp;nbsp;&amp;nbsp;&amp;nbsp; .ReleaseInternals
End With&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I even kill off the geoprocessor within the loop as such:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Set pGP = Nothing
pGPUtils.ReleaseInternals&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Arcmap Tools &amp;gt; options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Log geoprocessing is ticked off, results are temporary and results management is set to "Never Save"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So at all stages I say NO results, NO logging yet the Select tool still adds an entry in the ArcToolbox results Tab which overtime consumes memory. I need to run this tool a lot of times for a long time but I just can't make ArcMap not Log a result!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas, any undocumented tips or is this a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 17:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/the-geoprocessor-just-keeps-on-creating-amp-quot/m-p/42888#M1110</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2010-09-01T17:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: The GeoProcessor just keeps on creating "results", how to stop?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-geoprocessor-just-keeps-on-creating-amp-quot/m-p/42889#M1111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was this ever resolved?&amp;nbsp; I seem to be experiencing similar behavior, but I'm developing in VB.NET.&amp;nbsp; I've set the LogHistory property of the ESRI.ArcGIS.Geoprocessor.Geoprocessor to false, but my Results tab still shows the of tools I've executed in the Results tab.&amp;nbsp; I'm worried about the performance hit because I'm executing 10-15 tools per feature in a feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;OK all,&lt;BR /&gt;&lt;BR /&gt;Here is a tough one. I've written some VBA (because pythons method of spawning sub-processes meant my code was going to take 62 days...) and I've noticed the memory usage just keeps on creeping up.&lt;BR /&gt;&lt;BR /&gt;At one point I use the geoprocessor to call the Select Tool to create a new shapefile containing 1 point (Which is then used as a pour point for catchment generation)&lt;BR /&gt;&lt;BR /&gt;I create and set the geoprocessor as such:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Set pGP = New GeoProcessor
With pGP
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .OverwriteOutput = True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .AddOutputsToMap = False
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .LogHistory = False
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .TemporaryMapLayers = True
End With&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I call the tool as such:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
query = Chr(34) &amp;amp; "ID" &amp;amp; Chr(34) &amp;amp; " = " &amp;amp; CStr(ID)
With pVA
&amp;nbsp;&amp;nbsp;&amp;nbsp; .RemoveAll
&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add pFeatureLayer_Sites.FeatureClass
&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add "in_memory\tempSP"
&amp;nbsp;&amp;nbsp;&amp;nbsp; .Add query
End With
pStatusbar.Message(0) = "Extracting a single site to in_memory"
Set pGPR = pGP.Execute("Select", pVA, Nothing)
Set pFeatureClass = pGPUtils.OpenFeatureClassFromString(pGPR.GetOutput(0).GetAsText)
Set pGeoDataSetPP = pFeatureClass&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I release the memory as such:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
With pGPUtils
&amp;nbsp;&amp;nbsp;&amp;nbsp; .RemoveInternalLayer "tempSP"
&amp;nbsp;&amp;nbsp;&amp;nbsp; .ClearInMemoryWorkspace
&amp;nbsp;&amp;nbsp;&amp;nbsp; .RemoveInternalData
&amp;nbsp;&amp;nbsp;&amp;nbsp; .ReleaseInternals
End With&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;and I even kill off the geoprocessor within the loop as such:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Set pGP = Nothing
pGPUtils.ReleaseInternals&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;In Arcmap Tools &amp;gt; options:&lt;BR /&gt;&lt;BR /&gt;Log geoprocessing is ticked off, results are temporary and results management is set to "Never Save"&lt;BR /&gt;&lt;BR /&gt;So at all stages I say NO results, NO logging yet the Select tool still adds an entry in the ArcToolbox results Tab which overtime consumes memory. I need to run this tool a lot of times for a long time but I just can't make ArcMap not Log a result!&lt;BR /&gt;&lt;BR /&gt;Any ideas, any undocumented tips or is this a bug?&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/the-geoprocessor-just-keeps-on-creating-amp-quot/m-p/42889#M1111</guid>
      <dc:creator>isburns</dc:creator>
      <dc:date>2021-12-10T21:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: The GeoProcessor just keeps on creating "results", how to stop?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/the-geoprocessor-just-keeps-on-creating-amp-quot/m-p/42890#M1112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shea,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Short answer is no.&amp;nbsp; I just had to put up with ArcMap failing after X iterations (can't remember how many but only a few thousands).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 07:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/the-geoprocessor-just-keeps-on-creating-amp-quot/m-p/42890#M1112</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-09-06T07:57:56Z</dc:date>
    </item>
  </channel>
</rss>

