Groups | Blog | Home
all groups > visual studio .net debugging > december 2005 >

visual studio .net debugging : Finding the source code corresponding to an application error


Andrew Chalk
12/30/2005 3:55:58 PM
My program crshed and the Windows Event Log error was:
Application popup: MCSCRE.EXE - Application Error : The instruction at
"0x7c910f29" referenced memory at "0x00000000". The memory could not be
"read".
How do I find out which line of source code corresponds to this address?

Many thanks.

Oleg Starodumov
12/31/2005 2:23:08 AM

[quoted text, click to view]

In general, you can use one of the approaches described in this article:
http://www.cygnus-software.com/papers/release_debugging.html

In this particular case, the crash most likely occurred in one of system DLLs,
so the address itself is not enough to find out what part of the application's code
is responsible for that - call stack information is needed, e.g. from a minidump.
If you can find out which DLL the address 0x7c910f29 on the target system
belongs to, you might be able to guess what parts of your code could call it.
In particular, if it was ntdll.dll, heap corruption would be one of the first suspects.

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]


Andrew Chalk
1/1/2006 12:29:30 AM
Thanks! I'll try that.

- A
[quoted text, click to view]

AddThis Social Bookmark Button