Check heap size, set heap for system call

Need help with C, C++, perl, python, etc?

Check heap size, set heap for system call

Postby oliver67 » 2007-02-02 13:52

Hi,

I'm working on Linux with gcc 3.4.6.

Within program A I execute a binary B (sources available) via
system("blahblah"), but this binary B terminates with a malloc error.

So,
- is there a possibility to check the amount of free heap, so I can
report this value within B?
- a possibility to set the heap size for the binary B to be executed
within A?

Thanks in advance

Oliver
oliver67
 
Posts: 10
Joined: 2007-01-12 07:38

Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable