Recent

Author Topic: Application freezes after termination until there is some event  (Read 103 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.