How to ignore timer events in Delphis MessageDlg
问题 I have set up a global exception handler in Delphi. On some severe exceptions an error message is displayed (followed by Halt()). While the error message is shown, Delphi is processing the message queue, processing timer events, that lead to further errors. What I want is to show an error dialog which does not process timer events. How is that possible in Delphi? Edit: I use Dialogs.MessageDlg(...) to display the message. 回答1: You can filter queued messages, such as WM_TIMER , with