vb.net system tray app uses too much memory

D

dk

a very small system tray vb.net app built
using a vb.net component form goes up to
18K for memory usage in the task manager.

any idea why so much memory is being used for
a very small application?

explorer uses only 7.6k

tia,
dk
 
M

Mattias Sjögren

any idea why so much memory is being used for
a very small application?

The framework takes some memory as well, especially during startup. If
your app works in the background most of the time, much of it will be
paged out eventually, so you shouldn't have to worry about consuming
too much physical memory.

explorer uses only 7.6k

Well, Explorer isn't a managed app and doesn't use Winforms.



Mattias
 
R

Rick Mogstad

Explorer on my system uses 4.2 Megs of memory. 7.6K or 18K dont really seem so unreasonable.
 
F

Fergus Cooney

Hi dk,

A small app might pack a powerful punch. Or it might just be a hog!!

I've just run a test app that contains several UserControls on a Form.
That 'only' takes up about 10M (I assume you meant M rather than K). So it
does suggest that there's something going on with your app.

Some questions

What does your app do?
Do you have any bitmaps floating around?
Do you create a Form that you then hide?
Is this figure used immediately or does it creep up to it gradually?

Regards,
Fergus
 
H

Herfried K. Wagner [MVP]

* "Rick Mogstad said:
Explorer on my system uses 4.2 Megs of memory. 7.6K or 18K dont really seem so unreasonable.

Explorer uses 27 MB on my system.

;-)
 
F

Fergus Cooney

Hi Herfried,

Lol, perhaps you shouldn't store everything in just one folder. ;-))

Do you have Explorer in one process or several, I wonder. I have them
separate so I have a bunch of Explorers ranging from about 3 to 20.

Regards,
Fergus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top