views:

27

answers:

1

Hi,

Is it possible to output the contents of the memory leak dump to a String (not a console)? Hopefully yes :)

_CrtDumpMemoryLeaks(); // to-string?
+3  A: 

No. But you can have _CrtDumpMemoryLeaks output to a file (using _CrtSetReportMode and _CrtSetReportFile) and then read that file into a string.

Terry Mahaffey
Thanks, that will do the job
Samaursa