Hi Mullin
You can always use the GC.collect() method which forces the Garbage
collector to do a memory collection instantly . however, this is not the
best practice since the garbage collector (GC) should do collection on its
own at the best suited time according to its algorithm. There might be
something with your application that use memory in a way that is very
efficient ( for example you may be using string object instead of
stringBuilder for extensive string operations ) .
The best way to know what exactly is wrong with your program is to use the
CLR profiler . it is a tool that allow you to see how your program manage
memory ( see this link
http://msdn.microsoft.com/isapi/goms...details.aspx?F
amilyId=86CE6052-D7F4-4AEB-9B7A-94635BEEBDDA&displaylang=en )
Even if you are not a very expert user of CLR you will be at least able
to see what are the object that are in your memory ( and from these you can
know what code allocate these objects and what is wrong with it ). Try to
get the tool from the link and start using it to analize your program and
if you have any question on the tool please post it and I will be looking
back on this thread to see if I can help with anything
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC