Recent

Author Topic: Application freezes after termination until there is some event  (Read 216 times)

Dmitry24

  • New Member
  • *
  • Posts: 13
Application freezes after termination until there is some event
« on: September 21, 2019, 05:49:11 pm »
For simplicity add TMainMenu component with just a single item which just closes the main form with the code:
Code: Pascal  [Select]
  1. procedure TForm1.MenuItem1Click(Sender: TObject);
  2. begin
  3.   Close;
  4. end;
  5.  

After clicking the menu item there is no reaction until mouse is moved / key is down. Application quits only after some event. Tried Lazarus 2.0.4 and 2.1.0 trunk.

There is no such problem with the Lazarus IDE itself (when I click the menu item "Quit" of the Lazarus IDE compiled with the Cocoa interface it quits immediately). However in the Lazarus IDE code I can see the same Close call.

Does anybody have the same behaviour? Is there any fix? Using a timer seems be not helping.


trev

  • Sr. Member
  • ****
  • Posts: 263
  • Former Delphi 7 and Delphi 10.2 User
Re: Application freezes after termination until there is some event
« Reply #1 on: December 04, 2019, 08:23:50 am »
Works for me using Lazarus v2.1.0 r61775, FPC v3.3.1 r42640, macOS 10.14.6 (with sup update), Xcode 10.3.
o Lazarus v2.1.0 r61775, FPC v3.3.1 r42640, macOS 10.14.6 (with sup update), Xcode 10.3
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.0 (Parallels VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)