D
Diego Martins
Hi all! I am doing a crude investigation of memory leaks in objects
created by external libraries.
Since I don't have access to the source code, I can't tell if an object
are freeing its resources properly during destruction.
For now, I need a portable function that can tell me the available free
store memory. With that, I can do things like:
size_t mem = getFreeStoreAvailable();
{
SuspiciousObject obj;
...
} // obj destructor invoked here by compiler
assert( mem == getFreeStoreAvailable() );
of course it won't work for detecting resource leaks (e.g: handles)
do you know this function? any ideas?
Diego Martins
HP
created by external libraries.
Since I don't have access to the source code, I can't tell if an object
are freeing its resources properly during destruction.
For now, I need a portable function that can tell me the available free
store memory. With that, I can do things like:
size_t mem = getFreeStoreAvailable();
{
SuspiciousObject obj;
...
} // obj destructor invoked here by compiler
assert( mem == getFreeStoreAvailable() );
of course it won't work for detecting resource leaks (e.g: handles)
do you know this function? any ideas?
Diego Martins
HP