vb.net system tray app uses too much memory

  • Thread starter Thread starter dk
  • Start date Start date
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
 
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
 
Explorer on my system uses 4.2 Megs of memory. 7.6K or 18K dont really seem so unreasonable.
 
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
 
* "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.

;-)
 
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
 
Back
Top