I have noticed that most .NET Apps keep growing in memory size so i decided to experiment a bit. I created a new winforms app in c# 2005 and added a label and a timer control. the timers interval is at 100ms and on the tick event it sets the label's text to DateTime.Now.ToShortTimeString(). I have removed all debug and trace symbols, optimized the app to x86 code and removed the vs host app. Running the application i noticed that it grew by 1MB in just a minute while running. Why is that and how can it be prevented

.NET App memmory consumption
Leif Lundgren
First of all, if you're using Task Manager to check memory usage, don't. It's not a reliable way to tell how much your app is using.
I'm sure your app is not going to grow in usage by a meg a minute. I also don't think that what you're seeing will scale to larger apps in a way that is concerning. the garbage collector runs regularly, and in the meantime, garbage will accumulate at times, although the strings you're creating would be candidates for first pass clean up.