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

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

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

In the data description, it says "Application Failure tsrv.exe in crsm.dll 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 ?

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.

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
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.