Name

ErrorAddr Variable

Syntax

var ErrorAddr: Pointer;

Description

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.

See Also

ErrorProc Variable, Halt Procedure, NoErrMsg Variable, RunError Procedure

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.