Back

LL034

Halt/RunError usage

Object Pascal — Delphi & Free Pascal
Error
Delphi

Halt and RunError terminate the process immediately without cleanup, risking data loss

Halt and RunError terminate the process immediately without cleanup, risking data loss.

Why this severity

Halt and RunError terminate the process immediately without cleanup, risking data loss.


Known false positives

console test harnesses where abrupt termination is acceptable.

Remediation example

raise EFatalError.Create('Unrecoverable error');
// allows finally blocks and destructors to run

Reconnecting… Connection lost. Reload