I just noticed the memory usage ( using task manager) by the simple GUI application ( with single main window ) is around 3 MB .

I used Dev-c++ and Mingw as compiler

Is there anyway to reduce this ?

link|improve this question

What libraries are you using, what framework, what language? – EFraim Sep 3 '09 at 10:00
3  
Seems to me like you better ask this on stackoverflow.com. I also fail to see how 3 MB is in any way too much. – innaM Sep 3 '09 at 10:17
@EFraim , dev-c++ ide , mingw win32 C application – TuxGeek Sep 3 '09 at 13:32
Now also on stackoverflow: stackoverflow.com/questions/1373456/… – innaM Sep 3 '09 at 19:31
is this more than it would be if you compiled, with, say visual studio? – warren Sep 4 '09 at 8:58
feedback

1 Answer

up vote 0 down vote accepted

Adding this method in Main method yields a better result in task manager :)

SetProcessWorkingSetSize(GetCurrentProcess(), (SIZE_T) -1, (SIZE_T) -1);
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.