Re: [GD-Windows] Finding routine that's crashing
Brought to you by:
vexxed72
From: Ben C. <be...@gu...> - 2002-07-31 18:39:57
|
On Wednesday, July 31, 2002, 6:40:45 PM, someone wrote: > I'm getting an exception deep inside some call such that I don't have a > call stack. I'm using MSVC6. I'm not sure what's causing it or where > it happens, and it appears to be timing dependent (i.e. if I step > through the code, it doesn't happen). > Is there a simple way given an address to look up what function I'm in? > Using a MAP file works for app code, but this appears to be an entry > point somewhere deeper in the system so the address I'm seeing isn't in > the MAP file. You can use the ImageHlp DLLs to get the symbols for a given location in an app's address space. There's some sample code in MSDN for doing this (searching for ImageHlp should find it). We've got an exception handler in our current project that can do a stack trace and reports everything it finds, with symbols if available - if you can't track down the information give me a shout and I'll see if I can extract the relevant code snippets for resolving the addresses. -- Ben Carter - Neko Technologies - be...@gu... http://www.neko-tech.com/ - http://www.absoluteterror.com/ ---------------------------------PGP Key available on request--- "Broken mirror, a million shades of light, the old echo fades away. But just you and I can find the answer, and then we can run to the end of the world." - Small of two pieces, Xenogears |