A Memory problem related to Window size

After my program (a WinForm app) started, it cost about 70MB memory(from statistic of Task Manger). However, after I minimize the main window, it changed to 5MB, then I restore it to maximized state, it cost about 17MB memory. In all situation, the virutal memory cost is the same.

Could anyone explains this? Thanks!

[319 byte] By [LeiJiang] at [2007-12-16]
# 1
Hi Lei,

The behavior you're seeing is actually true for all Windows applications, not just .NET applications. You can find a decent overview of what's going on here: http://www.itwriting.com/dotnetmem.php

-Shawn

ShawnFarkas-MS at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
Thanks! I didn't notice this before.
LeiJiang at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...