Code::Blocks Forums

User forums => Help => Topic started by: cloudwalker on July 16, 2011, 11:58:01 am

Title: How to increase the heap size of a program
Post by: cloudwalker on July 16, 2011, 11:58:01 am
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
Title: Re: How to increase the heap size of a program
Post by: Jenna on July 16, 2011, 02:03:37 pm
Absolutely unrelated to Code::Blocks and therefore violating our forum rules.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F (http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F)

Topic locked !!