I'm a Pascal/Lazarus newbie, so I'm sure this is obvious, but....
The code below gives me "Variable identifier expected" error on this line:
Synchronize(@ShowStatus);
But
Synchronize(ShowStatus);
without @ seems to work and build fine.
What's with that ?
Thanks !@
procedure TUdpThread.ShowStatus;
var
myStatusText : string;
// this method is executed by the mainthread and can therefore access all GUI elements.
begin
myStatusText := fStatusText;
end;
procedure TUdpThread.Execute;
var
NewStatus : string;
begin
fStatusText := 'TMyThread Starting...';
Synchronize(@ShowStatus);
fStatusText := 'TMyThread Running...';