开发者

C++ MiniDumpWriteDump - FullMemoryDump doesn't give me much information

I've been using MiniDumpWriteDump to generate dump files on a crash. I've been trying to do a full memory dump. This seems to work, and generates a large file as expected.

However when I load this huge file into Visual Studio (2005) I don't seem to be able to see the values of any variables on the heap. In fact it gives me no more information than a normal dump ...

My call to MiniDumpWriteDump is as follows;

MINIDUMP_EXCEPTION_INFORMATION mdi;

mdi.ThreadId = GetCurrentThreadId();
mdi.ExceptionPointers = in_pInfo;
mdi.ClientPointers = FALSE;

MiniDumpWriteDump(GetCurrentProcess(),GetCurrentProcessId(),
    fHan,
    MiniDumpWithFullMemory,
    &mdi,
    0,
    0);

Note: I have a full set of pdb's, a valid stack, and in my test application I am faking an error with a divide by zer开发者_Python百科o.

Any idea why this is?

Cheers Rich


Probably because you don't have the correct .pdb files. Or because your code has been put through the optimizer's version of RSA encryption. Or because you've got the x64 build where pointers are passed in registers. Or because your code crashed due to heap corruption, making the debug info equally unreliable. Or the stack of the crashing thread is blown, leaving no bread crumbs to track.

Take your pick.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜