Task Manager indicates my program uses 1.834 kB of memory. I'm sure I haven't allocated even half that much. Why does my program use over 1 MB? I find that pretty much.
Task Manager indicates my program uses 1.834 kB of memory. I'm sure I haven't allocated even half that much. Why does my program use over 1 MB? I find that pretty much.
Don't call me stupid.
1.834 or 1,834. Also, are you running debug or Release?
As the dot takes two pixels, I believe it's a comma.
This time it's 1,376 kB.
This build does not have debug information. (i am using Dev, not VC)
Last edited by pronecracker; 05-27-2007 at 04:01 AM.
Most likely overhead from Windows and/or any libraries you are using.
Console projects use around 900 kB.
I guess I shouldn't worry about it.
Don't call me stupid.
it's the same for me, if I run a C++ app, without any memory allocation, the app uses :
1,484
I dont know why :s
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg."-Bjarne Stroustrup
Nearing the end of finishing my 2D card game! I have to work on its 'manifesto' though <_<
Well what libraries are you using? Just because you aren't allocating memory doesn't mean they aren't. Also without really knowing what Windows is doing behind the scenes it is almost impossible to know why it is using that amount.
And what is your Stack size?
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
I am using no libraries. Except windows ofc.
I don't know what the stack really is (I know how it works in asm, but I don't understand that you can simultaneously store variables on it ), but my compiler sets a default stack size, that could be that big, I only didn't know that that was also shown in task manager.
Don't call me stupid.
The stack size set by default in most compilers rather large, consider reducing it (somewhere in prefs or something).