
Hello, I am writing an application using mingw and boost (threads, multi-index, etc). I am searching for a memory debugger (leaks, buffer overruns) for this configuration. 1) I tried duma but not sure how to use it. It kept stopping in a "new" call inside boost. 2) couldn't get dmalloc to run properly. Error "dmalloc library has gone recursive". Has anyone used any memory debugger reliably with mingw and boost? Thanks, Sharad

On 2008-04-01, Sharad Mittal wrote:
2) couldn't get dmalloc to run properly. Error "dmalloc library has gone recursive".
I haven't used dmalloc with mingw or boost, but I have used dmalloc. This message normally means that you are running a multi-threaded progam without taking the necessary steps that dmalloc requires for multi-threading. You need to set the lockon parameter in the DMALLOC_OPTIONS environment variable, e.g. DMALLOC_OPTIONS="debug=0xe40303,lockon=20" http://dmalloc.com/docs/latest/online/dmalloc_14.html I have successfully found bugs by using dmalloc with C++ code but, in my opinion, it is more suitable for C. Hope this helps, Stephen Jackson
participants (2)
-
Sharad Mittal
-
Stephen Jackson