Boost Users :
From: Thomas Harning (metx84_at_[hidden])
Date: 2003-09-11 16:54:52
First off, I think the Boost pool is a great tool and for me has been one
of the most useful of Boost's libraries.
I have run into a problem however, due to the pool's usage of "malloc" and
"free" as the names of functions.
The problem is that I want to debug memory usage in my program and catch
memory leaks, but using the leak detection in Visual Studio 7.1 for the CRT
creates a macro for malloc and free, which conflicts with the pool's malloc
and free and makes a general mess.
Is there any better memory debug library/tools out there that are free and
can get the line/file that the memory allocation occurred and the size
perhaps and possibly a portion of the contained data as a character string?
Perhaps I could write up a patch to rename the malloc and free from the
boost pool [though I see that would be quite a pain to the existing users
of boost's pool since code would have to be rewritten with whatever
function is added].
Thomas Harning Jr.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net