Find out C++ Memory Usage in Code
You can use Microsoft Platform SDK functions to get the heap size at a specific point. If get the heap size at point A in your code, and then again at point B, you can see how much it has grown. This might help you isolate here memory growth occurs.
Some Microsoft Platform SDK functions relating to this are:
HeapLock
HeapWalk
GetProcessHeaps
GetHeapSize
HeapUnlock

浙公网安备 33010602011771号