How to combine crash "Error offset" with the source code?

The compiled exe continues to fail. I have the following information in the event viewer when it crashes:

Exception Code: 0xc0000008
Error Offset: 0x00000000000cb8e8

How do I match the Error Offset with my C ++ code? There is a .PDB file in the .PDB , you just don’t know how to do it.

+1
c ++ visual-studio-2012 visual-studio-debugging pdb-files
source share
1 answer

You also need to know which module the offset belongs to, if you get 0xC0000008 ( STATUS_INVALID_HANDLE ), then the exception will most likely be thrown from the ntdll.dll file, which will not help you debug your program, because what you need is deeper on the stack.

What you need to do is provide LocalDumps to the client, and then send you a minidump file that you can debug.

Example registry settings:

 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps] "DumpFolder"="d:\\miniDumps" "DumpType"=dword:00000002 "CustomDumpFlags"=dword:00001124 
+3
source share

All Articles