Recent

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

Dmitry24

  • New Member
  • *
  • Posts: 22
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 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.

 

TinyPortal © 2005-2018