User forums > Help
How to increase the heap size of a program
(1/1)
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:
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
Topic locked !!
Navigation
[0] Message Index
Go to full version