One of my projects is making use of Microsoft's supplied memory leak checker via _CrtSetDbgFlag
etc. This is working fine except that I now want to make use of a third-party package which is leaking a small amount of memory. I have no particular need to fix the leaks, but the output is annoying since it will disguise "genuine" leaks that may be introduced.
How does one go about disabling this leak checking for a particular file or project, but leave it on for others? My understanding is that it gets enabled via some #define
in debug mode - I've had a bit of a fiddle but haven't managed to find something which I can #undef
to switch it off.