Delphi - application hangs while ShowMessage or MessageDlg
问题 why the application hangs when Executing Thread and that thread have ShowMessage or MessageDlg but when using MessageBox everything is working normally. all this happened if the application Appearance not the defualt one >> " Windows " if the selected Appearance " Windows " it will never hangs even with the ShowMessage and MessageDlg 回答1: ShowMessage() and MessageDlg() are not thread-safe. They display VCL Forms, which must only be used in the context of the main UI thread. Windows.MessageBox