Author Topic: How to increase the heap size of a program  (Read 10609 times)

cloudwalker

  • Guest
How to increase the heap size of a program
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: How to increase the heap size of a program
« Reply #1 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

Topic locked !!