I'm trying to resolve a memory leak but have not been able to get the debugger to break on allocation of the leaked memory.
_CrtSetBreakAlloc() sets the proper value(I have verified it's not -1), but the program never breaks, or indeed any allocation. Is there something I'm missing?
The problem is deterministic as each time it is the same Alloc id(147), with the same size (8 bytes, which leads me to wonder, what could i be allocating that is 8 bytes? a wchar_t maybe?). Unfortunately as each time the program is run it's address in memory changes I have not been able to easily see it in the Memory watch window.
I'd prefer to find out why the debugger is not breaking as it should, but at this point my eyes are bleeding and I'm open to any other options on finding the leak. Anyone have any suggestions, anything would be appreciated.