[wxMSW, MSVC7] how to spot memory leaks

Armel Asselin asselin.armel at wanadoo.fr
Tue Feb 6 06:24:29 PST 2007


>    how do you spot memory leaks on wxMSW?
>
> I remember I found a combination of the
>
> #define wxUSE_DEBUG_CONTEXT
> #define wxUSE_MEMORY_TRACING
> #define wxUSE_GLOBAL_MEMORY_OPERATORS
> #define wxUSE_DEBUG_NEW_ALWAYS
>
> defines which allowed me (with MSVC 6) to see the filename and the 
> linenumber of the new() calls which were leaking memory when running the 
> MSVC debugger.
>
> I can't remember it however and I've been playing with these defines 
> without any result. Any hint?

I use CRTDBG_MAP_ALLOC if I remember well.

Armel 






More information about the wx-users mailing list