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(). Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal