Am 24.02.2015 16:38 schrieb "Marco van de Voort" <mar...@stack.nl>: > > In our previous episode, Michael Schnell said: > > On this behalf, "Application.QueuAsyncCall" is more versatile. > > > > But it's easy with TThread.Queue, as well. > > > > - define a class (not to be derived from TThread) that holds the data > > to be transferred and a procedure without parameters > > - create an instance of that class > > (where to store that instance?)
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. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal