[fpc-pascal] TThread.Queue vs TThread.Synchronize
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Tue Feb 24 10:30:37 CET 2015
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/
More information about the fpc-pascal
mailing list