Debug problem: how to map dll offset address to source code

Hi,
I'm getting an event log on application error stating:

 Faulting application  tsrv.exe version 0.0.0.0, faulting module crsm.dll, version 0.0.0.0, fault address 0x0000120f.

In the data description, it says "Application Failure tsrv.exe 0.0.0.0 in crsm.dll 0.0.0.0 at offset 0000120f...

I'd like to find out where this offset address is from the source codes (c programs) under VC6. What tools and methods should I use to find this out ?

V
vincentlueAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkrCommented:
1st of all, geneate a map file. The, you need the HINSTANCE (IOW: the base load address) for that DLL and subtract it from the faulting address. Add the 'Preferred load address' listed in the map file and look it up there.

The easier solution might be to create a debug build, run it and have the debugger take you right to the faulting line...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hemakumarCommented:
I prefer map file if it is only from release mode else debugger.Do u have the source of  crsm.dll?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.