473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

VB and Mem Usage

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?
Apr 14 '06 #1
3 1252
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/micro...b3648ef578f4d2

I see that this thread becomes recursive.

I hope this helps,

Cor
"Rob Harris" <ga*****@wildblue.net> schreef in bericht
news:uC**************@TK2MSFTNGP04.phx.gbl...
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?

Apr 15 '06 #2
This article explains it in detail:

http://www.itwriting.com/dotnetmem.php

Regards,

Cerebrus.

Apr 15 '06 #3
"Rob Harris" <ga*****@wildblue.net> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Apr 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: rbt | last post by:
Would a Python process consume more memory on a PC with lots of memory? For example, say I have the same Python script running on two WinXP computers that both have Python 2.4.0. One computer has...
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
11
by: Paulo Eduardo | last post by:
Hi, All! We are developing one app for windows 95/98/Me/NT4.0/2000/XP/2003 using Visual C++ 6.0. We need to set the % of CPU Usage to app process. Is there an API to set % of CPU Usage? Can...
10
by: rdemyan via AccessMonster.com | last post by:
My app contains utility meter usage. One of the things we have to deal with is when a usage is clearly incorrect. Perhaps someone wrote the meter reading down incorrectly or made a factor of 10...
3
by: Sirisha | last post by:
I am using the following code to get the CPU usage PerformanceCounter myCounter; myCounter = new PerformanceCounter(); myCounter.CategoryName = "Processor"; myCounter.CounterName = "%...
1
by: spacecoyote | last post by:
I tried this: usage = "Something, by Spacecoyote\nusage: %prog file " parser = OptionParser(usage) test.py --help and I expected: Something, by Spacecoyote usage: test.py file
1
by: sowmya.rangineni | last post by:
Ours is a windows based application. When we open the application the CPU usage is 0% and the Memory Usage is 54,324Kb When I open a specific form in a module, the CPU usage is 0% and the...
2
by: jld | last post by:
Hi, I developed an asp.net based eCommerce Website for a client and it is hosted at discount asp. The site is quite interactive, queries a database a lot and uses ajax.asp.net to spice up...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.