ErrorAddr Variable
When Delphi raises a runtime error, it stores in
ErrorAddr
the code pointer where the error
occurred. You can use this address in error messages, as the starting
point for tracing the call stack, or
whatever.
RunError
sets ErrorAddr
and
then calls Halt
. If ErrorAddr
is not nil
and you call Halt
,
the Halt
procedure prints an error message.