Is it possible to output the contents of the开发者_运维百科 memory leak dump to a String (not a console)? Hopefully yes :)
_CrtDumpMemoryLeaks(); // to-string?
No. But you can have _CrtDumpMemoryLeaks output to a file (using _CrtSetReportMode and _CrtSetReportFile) and then read that file into a string.
精彩评论