开发者

searching process memory

开发者 https://www.devze.com 2023-03-29 20:16 出处:网络
I\'m working on a C++/MFC program that\'s leaking memory.The memory allocation numbers are different on each run, so using _CrtSetBreakAlloc() won\'t help me locate the allocation.

I'm working on a C++/MFC program that's leaking memory. The memory allocation numbers are different on each run, so using _CrtSetBreakAlloc() won't help me locate the allocation.

The memory is definitely a CString:

f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {28660} normal block at 0x02353F98, 29 bytes long. Data: << N†X > 3C 4E 86 58 0C 00 00 00 0C 00 00 00 01 00 00 00

And the string mostly starts with the following sequence:

< N†X

I would d like to know if t开发者_运维技巧here's a way to search process memory (while execution is paused in debug mode) so I can search for this string, and possibly determine the allocation point in the code, or even the variable name?


Better use Visual Leak Detector

0

精彩评论

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