Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
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 –  ukanth 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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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