El 12/2/21 a les 11:16, Bo Berglund via lazarus ha escrit:
ing a bogus extra argument as zero but that just changed to a
different error message...

Application.QueueAsyncCall(@CopyScreenRect, 0);

formmain.pas(149,45) Error: Incompatible type for arg no. 1: Got "<procedure
variable type of procedure of object;Register>", expected "<procedure variable
type of procedure(Int64) of object;Register>"

It's telling you that the expected method should have an integer argument

Copyscreenrect looks like this if that matters:

procedure TfrmMain.CopyScreenRect;

change that to

procedure TfrmMain.CopyScreenRect(dummy:integer);

Bye

--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to