I was under the impression that the working set was the physical memory
usage of the application...
When you minimise the application, dosnt that kick on the OS to page the
memory to harddisk..
I did a test sometime back.. I created a huge array and filled it with
random garbage. Then told it to wait for a key press. I minimised the page
and opened it up again and checked its memory usage. The memory usage by
the app was not enough to hold the array of garbage i stored in the array.
Then i pressed a key and the memory usage jumped up while it was outputting
the garbage back to the screeen. This to me indicates that when i minimised
it, the app had written it to disk reducing the working set. When i started
it back up again, the data was retrieved from disk and output to screen...
Cheers
HappyH
Philip Carnstam said:
Is'nt there any way of solving this?
Non DotNet applications are able to run on very low memory usage... There
must be a way to lower the memory "costs" of running a DotNet application.
The whole DotNet idea is ridiculous otherwise... Can I only have 10 home
made DotNet applications active at once on a 128 MB Ram machine before the
machine completely runs out of memory?
Sounds mighty strange to me...
Thankful for any answers I can get!
in message Philip,
You could reduce the working set down to zero using API calls, but it
will just creep back up. The reason why the memory is consumed is because
the runtime is using the memory for garbage collection.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
How come .Net applications use so much memory? Every application I
compile
uses at least 10 MB of memory, even the ones consisting of only a form
and
nothing else. If I minimize them though the memory usage drops to a
couple
hundred KB. Why?
Is there anything I should to to prevent this? I have compiled in
release
and deactivated all forms of debugging, I think!
Thanks,
Philip