At the end of the year, I released a new version of Nvwa, which
contained a much improved version of debug_new, my memory debugger.
It now supports placement new: you may use new(std::nothrow) safely
with debug_new, and even new(buffer) will work in most cases (though a
warning will be emitted in this case). For more information, you may
browse to http://wyw.dcweb.cn/leakage.htm#update2007, or check the
source code/documentation yourself. The change should make debug_new
easier to use, with only a few more bytes' overhead per allocation.
You may download at
This version is specially tested with MinGW GCC, and has special
tuning for GCC. However, this is not part of the project MinGW.
Please direct any questions/feedback to the list nvwa-users
(nvwa-users@...; subscribe at
https://lists.sourceforge.net/lists/listinfo/nvwa-users -- not
required), or to me personally (less preferred) if you do not want
your message to be publicly seen.
(Keith, sorry if you think this is inappropriate. But this is a
one-time post, and for the benefits of MinGW users instead of for my
own advantage -- apart from my satisfaction that it is useful.)
Happy New Year!