excessive memory usage ?

  • Thread starter Thread starter Deadly_M
  • Start date Start date
D

Deadly_M

Writing with Visual Basic.net

Even the smallest piece of code with no form and no references and the
debugging code removed still seems to use around 6000 k
what is .net doing to consume that amount of memory ?
how can i stop this from happening ?
I'm trying to create a small compact efficient piece of code that will be
constantly backgound running and people just wont take it seriously if its
using that amount of precious memory on their systems.

Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com
 
Unfortunaltey I agree with you and have noticed too that the memory
usage of a .net app is sickening. I have not been able to resolve this
but my app which basically does nothing except shows an mdi form
arrangement with some descent looking background images takes around 20
megs of ram. On top of that if I access my database it jumps up to
about 26 megs (and im not using datasets just datareaders) and when I
close it never goes back down to 20. I understand garbage collection
but how is this a benefit if all .net apps just eat memory. Than
garbage collection has to run more often defeating its own purpose.
Microsoft has always been good at eating RAM but this is obsurd. If
anyone knows why this happens and how to stop it I would be very
interested in knowing?

-Ivan
 
* "Deadly_M said:
Even the smallest piece of code with no form and no references and the
debugging code removed still seems to use around 6000 k

That's "normal".
what is .net doing to consume that amount of memory ?

The application will load some libraries and it will need the CLR to be
executed.
how can i stop this from happening ?

Use pure C.

SCNR
 
Hi Deadly,

No other answer than Herfried,

Just curious are you talking about a handheld?

In other circumstanses 6K cost less than a hamburger.

Cor
 
No not for handheld ,
but if its going to be a permanent background task it needs to be very
compact , agree ?
Thanx
 
Hi Deadly,

I agree an I disagree, depends on the application.
In my opinion VB.net is not the language for what you describe.
I thought that for small compact background programs C++ unmanaged code is
still the solution.

But I can be wrong and has somebody a solution for you in VB.net

Cor
 
My PC time is very limited, just a hobby and I don't have time to practice
other languages.
Maybe I'll do some night classes sometime and learn some new stuff but until
then I guess I'm stuck with VB for now.
 
Back
Top