<?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: fixing VBA memory leak problem in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/fixing-vba-memory-leak-problem/m-p/1669727#M81494</link>
    <description>you might try object.dispose</description>
    <pubDate>Fri, 09 Jun 2006 17:33:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-06-09T17:33:50Z</dc:date>
    <item>
      <title>fixing VBA memory leak problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/fixing-vba-memory-leak-problem/m-p/1669725#M81492</link>
      <description>I have written an app in VBA that could be finished except for the seemingly unsolvable memory leaks that are inherent in VBA.&lt;BR /&gt;
&lt;BR /&gt;
I am hoping to migrate everything into VB.NET and want to take a look down this road so I do not smash into another wall.&lt;BR /&gt;
&lt;BR /&gt;
I have done all the good cleanup practices in my code but I still watch task manager inflate until the inevitable fatal crash that will always happen when working with thousands of entities, selection sets, etc.&lt;BR /&gt;
&lt;BR /&gt;
I am wondering if in .NET .....objects, collections, and arrays will be released from memory when set to nothing as is the promise of the NET framework. So far in this group there is hardly any mention of the memory leak problems that have been asked in the VBA group that but have not been really adressed with real solutions.&lt;BR /&gt;
&lt;BR /&gt;
I wonder if making a standalone VB.NET app can over come this problem or should it be a hybrid windows.form exe calling a dll.</description>
      <pubDate>Fri, 09 Jun 2006 00:33:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/fixing-vba-memory-leak-problem/m-p/1669725#M81492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-09T00:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: fixing VBA memory leak problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/fixing-vba-memory-leak-problem/m-p/1669726#M81493</link>
      <description>The short answer is "no", .NET will not release objects from memory when &lt;BR /&gt;
they are set to Nothing (null); and .NET makes no such promises to do so.&lt;BR /&gt;
&lt;BR /&gt;
That being said, garbage collection generally works quite well in .NET and &lt;BR /&gt;
most objects that have strict resource-release requirements implement &lt;BR /&gt;
IDisposable.  Furthermore, there are some GC utility routines which allow &lt;BR /&gt;
you force garbage collection to take place should that be absolutely &lt;BR /&gt;
necessary.&lt;BR /&gt;
&lt;BR /&gt;
   Dan&lt;BR /&gt;
&lt;BR /&gt;
&lt;DBARANAS&gt; wrote in message news:5200753@discussion.autodesk.com...&lt;BR /&gt;
I have written an app in VBA that could be finished except for the seemingly &lt;BR /&gt;
unsolvable memory leaks that are inherent in VBA.&lt;BR /&gt;
&lt;BR /&gt;
I am hoping to migrate everything into VB.NET and want to take a look down &lt;BR /&gt;
this road so I do not smash into another wall.&lt;BR /&gt;
&lt;BR /&gt;
I have done all the good cleanup practices in my code but I still watch task &lt;BR /&gt;
manager inflate until the inevitable fatal crash that will always happen &lt;BR /&gt;
when working with thousands of entities, selection sets, etc.&lt;BR /&gt;
&lt;BR /&gt;
I am wondering if in .NET .....objects, collections, and arrays will be &lt;BR /&gt;
released from memory when set to nothing as is the promise of the NET &lt;BR /&gt;
framework. So far in this group there is hardly any mention of the memory &lt;BR /&gt;
leak problems that have been asked in the VBA group that but have not been &lt;BR /&gt;
really adressed with real solutions.&lt;BR /&gt;
&lt;BR /&gt;
I wonder if making a standalone VB.NET app can over come this problem or &lt;BR /&gt;
should it be a hybrid windows.form exe calling a dll.&lt;/DBARANAS&gt;</description>
      <pubDate>Fri, 09 Jun 2006 12:56:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/fixing-vba-memory-leak-problem/m-p/1669726#M81493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-09T12:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: fixing VBA memory leak problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/fixing-vba-memory-leak-problem/m-p/1669727#M81494</link>
      <description>you might try object.dispose</description>
      <pubDate>Fri, 09 Jun 2006 17:33:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/fixing-vba-memory-leak-problem/m-p/1669727#M81494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-09T17:33:50Z</dc:date>
    </item>
  </channel>
</rss>

