Incidentally, I have tried the Microsoft CRT library you linked to. I am unable to get any line numbers when posting memory leaks. Just useless dumps.
I put this at the top of my PluginProcessor.h file:
#include "JuceHeader.h"
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
I put this in my PluginProcessor constructor:
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
I purposely do not free some objects, and upon exit of the AudioPluginHost, where I am debugging it as an attached process, it prints out:
Detected memory leaks!
Dumping objects ->
{54664} normal block at 0x000001F80F17B0E0, 64 bytes long.
Data: < > 00 00 00 00 CD CD CD CD F8 CF 16 0F F8 01 00 00
{54663} normal block at 0x000001F80F17A8E0, 64 bytes long.
Data: < > 00 00 00 00 CD CD CD CD 20 CF 16 0F F8 01 00 00
[...] etc.
No line numbers or any helpful information. I seem to recall that you cannot use this in JUCE because of issues like:
