BUG: OnExit and ComboBox lazarus / 31-LCL ---------------------------------------------------------------------- bpranoto · 2023-01-31 06:14 If in OnExit event of a window control a messagedlg is shown and the current active control is a TComboBox, the app will be freezed. You can't do anything even closing the app. Did I just find a bug or there is something I miss? A self contained demo app is attached. Environment: FPC: 3.2.2 Lazarus 2.2.4 OS: Ubuntu 18.04 0 64 bit ---------------------------------------------------------------------- KodeZwerg · 2023-01-31 06:46 Lazarus 2.2.4 (rev lazarus_2_2_4) FPC 3.2.2 x86_64-win64-win32/win64 Windows 10/64bit No error. ---------------------------------------------------------------------- bpranoto · 2023-01-31 06:53 Thanks. Then it is related to the O/S.. BTW, I have found the solution. Don't display the dialog inside the OnExit event, but show it after the event is finished with the help of Application.QueueAsyncCall ---------------------------------------------------------------------- KodeZwerg · 2023-01-31 07:10 Quote from: bpranoto on January 31, 2023, 07:53:55 amThanks. Then it is related to the O/S.. BTW, I have found the solution. Don't display the dialog inside the OnExit event, but show it after the event is finished with the help of Application.QueueAsyncCall You are welcome and I am glad that you found something that works for you! (Anyway, I do full agree your statement that in an OnExit event you should not call a Dialog - from view point of logic)