Back to Devexpress

DXWIN0006: DoEvents Call

windowsforms-403885-build-an-application-security-considerations-code-diagnostics-win-006-message.md

latest546 B
Original Source

DXWIN0006: DoEvents Call

  • Apr 28, 2022

Severity: Warning

The DoEvents() method suspends the current thread and processes all waiting window messages. If a message causes an event to be triggered, then other areas of your application code may execute. This can cause your application to exhibit unexpected behaviors that are difficult to debug. As such, it is generally recommended to avoid calling this method.