Back

LL079

Possible infinite loop

Object Pascal — Delphi & Free Pascal
Warning
Reliability

While True or repeat/until False without Break/Exit will hang the application

while True or repeat/until False without Break/Exit will hang the application.

Why this severity

while True or repeat/until False without Break/Exit will hang the application.


Known false positives

server main loops that intentionally run until process termination.

Remediation example

while True do
begin
  ProcessNext;
  if Done then Break;
end;

Reconnecting… Connection lost. Reload