News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to increase the heap size of a program

Started by cloudwalker, July 16, 2011, 11:58:01 AM

Previous topic - Next topic

cloudwalker

Hi everyone,

I am trying to build a system through CodeBlocks.
This application require malloc() frequently.
However, every time when the memory used reach  2GB,
the malloc() always return NULL.
After looking up some information, I thinks it may caused by the limited heap size.
So, could you please tell me how to increase the heap size to 4G or more?(my machine is equipped with 8GB physical memory)
Thanks very much

Jenna