Been doing some work on this.
Figured that I could try and get some of the functionality of the Heap watcher using Crt functionality.
using:
_CrtMemDifference();
_CrtMemDumpStatistics();
_CrtMemDumpAllObjectsSince();
I get the following:
[code:1:7a580be489]
0 bytes in 0 Free Blocks.
4 bytes in 1 Normal Blocks.
0 bytes in 0 CRT Blocks.
0 bytes in 0 Ignore Blocks.
0 bytes in 0 Client Blocks.
Largest number used: 0 bytes.
Total allocations: 9 bytes.
Dumping objects ->
c:\main.cpp(35) : {148} normal block at 0x00353AF8, 4 bytes long.
Data: < > CD CD CD CD
Object dump complete.
[/code:1:7a580be489]
So this is where I am now. I get the file name, and line of code where the allocation (that was not deleted) occurred to the output console.
Next, I’d like to dump the call stack at the point of each allocation, and possible detect COM leaks.
Any input is welcomed.