Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question
What libraries are you using, what framework, what language? – EFraim Sep 3 '09 at 10:00
Seems to me like you better ask this on 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 – ukanth Sep 3 '09 at 13:32
Now also on stackoverflow:… – 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
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);
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .