It could, but be aware that taking control of the process may help memory
usage, but cause additional problems. By default, the GC fires when there is
a lack of memory. While this produces bad numbers, in task manager, it is
not really all that bad to have the memory filled versus empty, as it is
idle. If you start other processes, the query for memory will fire off the
GC in .NET.
The best advice is not to take control of the GC, unless you see other
symptoms of a problem. Task Manager memory usage is not enough to get
concerned (for reasons stated above). If an object has a Dispose() method,
call it when you get rid of it. That will guarantee the GC picks it up on
its next run.
The biggest danger is not consumption of memory, but memory not being freed
by GC when it is no longer in use. This happens when you still have an
object that appears to be in use, which most oft happens when you fail to
Dispose().
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************
Think Outside the Box!
************************************************