Loaded memory image differs from map file



With a certain project I am facing troubles profiling it. At a certain
point, the profiling application will die with an Access Violation. The code
where the profiling application fails, is a call to an interfaced method
call on an interface pointer. When debugging with Delphi, and setting a
breakpoint before this call, the compiler will stop on a different location
than the call (Somewhere in the middle of a different call of a different
class of the same unit). When comparing the EIP address with the map file,
the EIP contains the address where the called method should exist according
to the .map file, but that address corresponds with different Delphi source
code.

Strange enough, when I comment a certain normal object (descendent of
TCollectionItem) out, the debugger will stop on the correct line of source
code. The commented out object is an object which is not used, is not
interfaced, and besides some fields and properties only contains an Assign
method.

Does anybody have any idea what is happening here?

Regards,
Mariella Bakker


.



Relevant Pages

  • Re: Loaded memory image differs from map file
    ... The code where the profiling application fails, is a call to an interfaced method call on an interface pointer. ... When comparing the EIP address with the map file, the EIP contains the address where the called method should exist according to the .map file, but that address corresponds with different Delphi source code. ... then simply place in your mind to subtract that from the report you get ...
    (comp.lang.pascal.delphi.misc)
  • Re: Process Profiling
    ... how to make the .map file of my application to create the profile header in ... > applications profiling is not shown. ... > Vivek B. ...
    (microsoft.public.windowsce.embedded)