* "Crirus" <Cr****@datagroup.ro> scripsit:
I have an aplication (obviously :))
I look at the Task Manager, memory usage column and notice the following:
First time I start the application, I have around 55.000- 60.000 K.
After I minimise the application and restore, the Memory usage drop to
16.000K and remain around that value..
Should I be concerned with this?
This behavior is not specific to .NET applications only.
It is a feature of the Windows/Explorer shell.
If an application is minimized, Windows removes the working set memory from
the application by calling the Win32 function 'SetProcessWorkingSetSize':
<http://msdn.microsoft.com/library/en-us/dllproc/base/setprocessworkingsetsize.asp>
Windows supposes that minimized applications will not be used for some time
and this memory will be made available to other processes.
When restoring the window the application gets the memory back:
<http://support.microsoft.com/?kbid=293215>
This behavior is by design and it doesn't make sense to worry about it.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>