﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Task Manager - Memory Usage</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 15 Jun 2026 06:08:06 GMT</lastBuildDate><ttl>20</ttl><item><title>Task Manager - Memory Usage</title><link>http://forum.strataframe.net/FindPost8683.aspx</link><description>I noticed something with memory usage with .NET applications that I didn't see with VB6 Apps, and was wondering if I'm doing something wrong or if this is normal behavior.&lt;/P&gt;&lt;P&gt;I created a small test SF Maintenance form with a browse dialog.&amp;nbsp; I invoke the browse and perform a search...memory jumps up a little.&amp;nbsp; I close the dialog and memory does not go back down.&amp;nbsp; I then invoke the browse again.. and again... memory keeps increasing.&lt;/P&gt;&lt;P&gt;Is this normal?&amp;nbsp; I made sure I disposed of all objects.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR&gt;Tim</description><pubDate>Sat, 05 May 2007 10:31:05 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Task Manager - Memory Usage</title><link>http://forum.strataframe.net/FindPost8688.aspx</link><description>Yes, though it is not recommended, but you can force the garabage collection by calling GC.Collect().</description><pubDate>Sat, 05 May 2007 10:31:05 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Task Manager - Memory Usage</title><link>http://forum.strataframe.net/FindPost8687.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I heard that is utility in Java to do garbage collection manually to clean up memory. Is there any in .NET? I need it to clean up memory during design time.&lt;/P&gt;&lt;P&gt;Thank you</description><pubDate>Fri, 04 May 2007 23:15:03 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Task Manager - Memory Usage</title><link>http://forum.strataframe.net/FindPost8686.aspx</link><description>Yes, with .NET this is normal... the memory does not go back down until the Garbage Collector decides to run a collection, and generally, a collection isn't run until the application gets to the point where it's reaching it's defined heap limit (which is bigger the more RAM you have in the machine...).&amp;nbsp; So, even when you dispose of something, the actual memory is not reclaimed until the garbage collector runs.&amp;nbsp; You can run a collection manually by calling GC.Collect(), but I would recommend against it because it can slow down you application considerably letting .NET run it on its own works for about 99.999% of the time :)&lt;/P&gt;&lt;P&gt;Generally, if you watch it long enough, you'll notice a big drop in the amount of memory... and you know a collection was just run.</description><pubDate>Fri, 04 May 2007 16:53:57 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>