Home » Questions » Computers [ Ask a new question ]

How to reduce memory consumption in MingW based GUI Application

How to reduce memory consumption in MingW based GUI Application

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

Asked by: Guest | Views: 239
Total answers/comments: 1
bert [Entry]

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

SetProcessWorkingSetSize(GetCurrentProcess(), (SIZE_T) -1, (SIZE_T) -1);"