Sign in Join
FPDoc Onlineexperiment

ErrorProc constant

In unit System

Custom error handling procedure.

Declaration

pascal
ErrorProc: TErrorProc = Nil

Description

If set, the ErrorProc constant is used when a run-time error occurs. If it is not set, then the standard error handling is done: a stack dump is performed, and the program exits with the indicated error code.

The SysUtils unit sets this procedure and raises an exception in its handler.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.