LL032
Sleep call
Object Pascal — Delphi & Free Pascal
Warning
Delphi
Sleep blocks the calling thread, freezing the UI or wasting thread-pool resources
Sleep blocks the calling thread, freezing the UI or wasting thread-pool resources.
Why this severity
Sleep blocks the calling thread, freezing the UI or wasting thread-pool resources.
Known false positives
background worker threads where a deliberate delay is intended.
Remediation example
FTimer := TTimer.Create(Self); FTimer.Interval := 1000; FTimer.OnTimer := OnDelayElapsed;