My applcations always use about 15 MB of the memory ?!!!!

Hello, Every time I develop an application I face a real problem that my appliction is slow to open and it uses alot of megabytes from the memory.
I tried an empty application and it used about 15 MB !!!
[268 byte] By [MagicPC] at [2007-12-23]
# 1

in debug mode or if you have compiled it to a release version?

you could also try to reinstall VB

ChrisMentioned at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

15 MB is not considered a large amount of memory in most modern computers, and should not be considered the sole reason for a system running slow. The .Net framework is always loaded for any Visual Studio program, and 15 MB sounds about right to me. If this amount of memory is really straining your system, you are probably too close to the minimum requirements for your operating system.

SquireJames at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3

I think 15mb is LOT for a 'HelloWorld' app!!!

I've been monitoring Memusage on a sytem with a 3rd party (& leaky) API, and wasn't happy to find a app doing essentially nothing, but chewing up 20mb of memory doing that!

When the .NET framework is loaded for 1 app, do other apps 'share' it or load thier own?

If the latter, and you have 10 apps running on one machine, that's a lot of memory is use for not much processing

Anarchy at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 4

Mine's about 24Mb. Are we having a competition ?

That's the way it is. If memory is a big issue for you, then you'd have to use something other than .NET based language. Perhaps a C++ native program. If it's a REALLY big issue, you can try C or Assembler. Tell us how you get on in 12 months or so.

On the othe hand, don't worry about it. The memory usage seems to be in the ballpark.

SJWhiteley at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 5
Anarchy wrote:

I think 15mb is LOT for a 'HelloWorld' app!!!

I've been monitoring Memusage on a sytem with a 3rd party (& leaky) API, and wasn't happy to find a app doing essentially nothing, but chewing up 20mb of memory doing that!

I think that too, but I recognized that when you minimize the application and restore it again the memory it uses will decrease alot .

MagicPC at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 6
Anarchy wrote:

I think 15mb is LOT for a 'HelloWorld' app!!!

I've been monitoring Memusage on a sytem with a 3rd party (& leaky) API, and wasn't happy to find a app doing essentially nothing, but chewing up 20mb of memory doing that!


I think that too, but I've found that when you minimize the application and restore it again the memory it uses will decrease . BUT WHY?
MagicPC at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 7
Anarchy wrote:

I think 15mb is LOT for a 'HelloWorld' app!!!

I've been monitoring Memusage on a sytem with a 3rd party (&

leaky) API, and wasn't happy to find a app doing essentially nothing,

but chewing up 20mb of memory doing that!

I think that too, but I've found that when you minimize the application

and restore it again the memory it uses will decrease . BUT WHY?

MagicPC at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 8

Maybe this will shed some light:

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

nbrege at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 9
SJWhiteley wrote:
...you can try C or Assembler. Tell us how you get on in 12 months or so.

ho ho!

Anarchy at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic General...