On Tue, 24 Feb 2015 09:30:37 +0000 Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote:
> On 2015-02-23 19:49, Philippe Lévi wrote: > > if code in thread access a local variable (in stack) of the function > > where thread is issued ... it may access "something" which does not > > exist any more. correct? > > Good question, and what I was trying to get at with my second question > on TThread.Queue usage. As Sven mentioned in his reply (and how I > understood it, but needed confirmation), anonymous methods will solve > that issue - once FPC supports anonymous method usage with TThread.Queue(). I think what you mean is "closure". The functions don't need to be "anonymous" for that. Mattias _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal