Grant,
I wouldn't judge memeory usage of a program by what task manager says.
Memory management in .net is a complex thing and includes lots of
optimizations for performace as well as optimizations for responding to
conditions when system memory may be low. Memory mamagement is also carried
out by the OS.
Try the following to prove this:
1) Run your program
2) Note it's memeory usage in the task manager
3) Minimize your form to the taskbar
4) Note the memory usage now
Unless you're doing a lot of COM interop or have a problem with major memory
leaks (where the usage keeps going up until your system becoms unstable), I
wouldn't worry about it.
HTH,
Trev.
"Grant Mills" <mi*************@telusNOSPAMplanet.net> wrote in message
news:vjYXb.11187$n17.4349@clgrps13...
Is there anyway to reduce the amount of memory a VB.net program allocates?
Just a simple windows form, with one button and a label, and all the
button does is change the
text in the label (it's even hardcoded) and the EXE is using 15000+k of
memory according
to the task manager...
I mean I realize that VB is going to be more bloated than a C++ app. But
is there anyway
to reduce this amount? There should be no reason for it to think it needs
to 'hold' 15 megs of memory
for a program that has absolutly no dynamic content.
-Grant