[DUG] Determine line number from MAP file
Ross Levis
ross at stationplaylist.com
Mon Aug 9 18:01:39 NZST 2010
Optimization would have been on. I've got MadExcept installed now and I'm
hoping this will pinpoint the line number. If not then I'll upload a new
map file.
Cheers,
Ross.
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Cheng Wei (FMI)
Sent: Monday, 9 August 2010 4:00 PM
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Determine line number from MAP file
Hi Ross,
When you built your dll was Code Optimisation turned on (either under
Project Options | Compiler or in the unit source)? My utility works for
projects with Optimisation turned off only. When Optimisation is on address
map is different
Regards
Cheng Wei
Software Development Manager
Fairview Metal Industries
M +64 21 410 776
P +64 9 984 4917
F +64 9 984 4993
<blocked::mailto:chengw at fmi.co.nz> chengw at fmi.co.nz
<blocked::http://www.fmi.co.nz/> www.fmi.co.nz
_____
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Ross Levis
Sent: Monday, 9 August 2010 1:32 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Determine line number from MAP file
Thanks Cheng. I suspect Windows changed the load address itself, which it
can do if something else is occupying that memory location. In that case I
guess it's impossible to determine, is that correct?
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Cheng Wei (FMI)
Sent: Monday, 9 August 2010 9:15 AM
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Determine line number from MAP file
A few years back we wrote an utility to find the line number (based on
Christophe Gevrey's source code) as well as func/proc calling hierarchy, it
served us well over the years.
I tried our utility on your map file and it can't find the address, I
suspect the linker Image Base you provided is incorrect.
Regards
Cheng
_____
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Ross Levis
Sent: Saturday, 7 August 2010 12:08 a.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] Determine line number from MAP file
I have written a DLL for my Delphi 7 application. It's a C compatible DLL
with no Delphi memory sharing etc.
It works fine for me and several other users, but one user is regularly
receiving an access violation in this DLL at a specific address. I have a
detailed .MAP file and I'm hoping someone can help me find the source code
line number from this.
I've not done this before and I'm hoping someone can help.
The access violation is at 04148AD1.
Here is the map file.
http://www2.stationplaylist.com/in_wma.map
I believe the linker image base was set to $01500000 at the time of this
compile.
I hope this is possible.
Thanks,
Ross.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100809/74d10f90/attachment.html
More information about the Delphi
mailing list