开发者

Output _CrtDumpMemoryLeaks() to a String

开发者 https://www.devze.com 2023-01-07 04:02 出处:网络
Is it possible to output the contents of the开发者_运维百科 memory leak dump to a String (not a console)? Hopefully yes :)

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消