I\'ve create a c# application which uses up 150mb of memory (private bytes), mainly due to a big dictionary:
Dictionary Txns = new Diction
Most probably you have a hidden reference to the dictionary somewhere else. Thus the dictionary is not collected, but if you Clear()
it, the contents get collected.
As others have already noted, forcing the GC is not recommended. This might lead to memory being pushed into higher "generations" which are not often collected, thereby wasting more memory than gained in the long run.