VB and Mem Usage

  • Thread starter Thread starter Rob Harris
  • Start date Start date
R

Rob Harris

When I run my program memory usage under Task Manager's Processes tab
indicates about 9 megs. And as I do things with the program memory usage
witll top out at about 12 Megs. However, if I minimize the program to the
taskbar, memory usage drops to about 500KB. And, when I restore the app to
the foreground memory usage reports about 2 Megs and as I use the program
mem usage rises. Why so variable, especially the difference in when I first
start the app and when I minimize and restore?
 
Rob,

The answer on this is simple, don't look at the task manager for memory
usage with Net. The taskmanager is an idicator something the same as you
maybe have in your car, an indicator how many miles/kilometer you can ride
with the current fuel, but that is an aprox.

This is often handled in this newsgroups. In my idea the most in depth by
Willy.

http://groups.google.com/group/micr...2?q=willy+taskmanager&rnum=9#18b3648ef578f4d2

I see that this thread becomes recursive.

I hope this helps,

Cor
 
Rob Harris said:
When I run my program memory usage under Task Manager's Processes tab
indicates about 9 megs. And as I do things with the program memory usage
witll top out at about 12 Megs. However, if I minimize the program to the
taskbar, memory usage drops to about 500KB. And, when I restore the app
to the foreground memory usage reports about 2 Megs and as I use the
program mem usage rises. Why so variable, especially the difference in
when I first start the app and when I minimize and restore?

I suggest to take a look at this article:

The working set of an application is trimmed when its top-level window is
minimized
<URL:http://support.microsoft.com/?scid=kb;EN-US;293215>

In addition consider taking a look at the documentation chapters about
Garbage Collection.
 
Back
Top