P
Pep
I have a problem I need to solve which looks like memory exhaustion.
Is there a function that I can use in c++ to determine the size of the
heap before and after a allocation?
The C++ code is running on linux and freeBSD.
The actual library I am interfacing with uses malloc and i have no
control over it so I need to see the state of the heap after each use
of the libraries allocation functions.
TIA.
Is there a function that I can use in c++ to determine the size of the
heap before and after a allocation?
The C++ code is running on linux and freeBSD.
The actual library I am interfacing with uses malloc and i have no
control over it so I need to see the state of the heap after each use
of the libraries allocation functions.
TIA.