On 08/10/2011 12:03 PM, Juan Sánchez wrote:

   GUI2Application.QueueAsyncCall(@Form2.CloseForm, 0);

And Form2.CloseForm refers to:
procedure TForm2.CloseForm(x: LongInt);
begin
  Close();
end;
Yep. This is how it should be done. (The procedure to be queued is defined to have a parameter).

But I can see that I cannot close main windows with close button. I think that "GUI2Application.Run" doesn't end.
I never tried QueueAsyncCall in Windows and I do know that it once was buggy in Linux, so maybe it in fact does not work correctly.

-Michael

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to