On Mon, Feb 23, 2015 at 3:23 PM, Sven Barth <pascaldra...@googlemail.com>
wrote:
[...]=== code begin ===

>
> procedure TMyThread.Execute;
> var
>   s: String;
>
>   procedure SyncOnPrint;
>   begin
>     fOnPrint(s);
>   end;
>
> begin
>   s := 'Hello World';
>   Queue(@SyncOnPrint);
> end;
>
> === code end ===


How to compile it?:

Error: Incompatible type for arg no. 1: Got "<address of procedure is
nested;Register>", expected "<procedure variable type of procedure of
object;Register>".

-- 
Silvio Clécio
My public projects - github.com/silvioprog
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to