<p>Am 24.02.2015 16:38 schrieb "Marco van de Voort" <<a href="mailto:marcov@stack.nl">marcov@stack.nl</a>>:<br>
><br>
> In our previous episode, Michael Schnell said:<br>
> > On this behalf, "Application.QueuAsyncCall" is more versatile.<br>
> ><br>
> > But it's easy with TThread.Queue, as well.<br>
> ><br>
> > - define a class (not to be derived from TThread) that holds the data<br>
> > to be transferred and a procedure without parameters<br>
> > - create an instance of that class<br>
><br>
> (where to store that instance?)</p>
<p>There's no need to. You create the object and pass the objects handler method to Queue/Synchronize. The handler method then does a Free at the end.</p>
<p>Regards,<br>
Sven</p>