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

      che...@fmi.co.nz <blocked::mailto:che...@fmi.co.nz> 

      www.fmi.co.nz <blocked::http://www.fmi.co.nz/> 

 


________________________________

        From: delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@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-boun...@delphi.org.nz
[mailto:delphi-boun...@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-boun...@delphi.org.nz
[mailto:delphi-boun...@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.

                 

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Reply via email to