Recent

Author Topic: Application freezes after termination until there is some event  (Read 502 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: 1065
  • 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.
o Lazarus v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

 

TinyPortal © 2005-2018