LL031
Application.ProcessMessages
Object Pascal — Delphi & Free Pascal
Warning
Delphi
Re-entering the message loop causes reentrancy bugs and unpredictable UI state
re-entering the message loop causes reentrancy bugs and unpredictable UI state.
Why this severity
re-entering the message loop causes reentrancy bugs and unpredictable UI state.
Known false positives
small utility apps with a single blocking operation and no reentrancy risk.
Remediation example
TTask.Run(procedure begin DoLongWork; TThread.Synchronize(nil, UpdateUI); end);