random ramblings on Delphi, programming, Delphi programming, and all the rest
My CodeRage X session on parallel programming with patterns is now available on YouTube.
You can also download the slides (pps, pdf) and code.
is there any way to pass data from the Task to the main thread in the onterminated event ?
Not specifically in OnTerminated, no. You can send your data to the main thread before that (Task.Comm.Send) or you can use a shared data object or you can use ExitCode if you only want to pass back an integer status.
is there any example with shared data?
is there any way to pass data from the Task to the main thread in the onterminated event ?
ReplyDeleteNot specifically in OnTerminated, no. You can send your data to the main thread before that (Task.Comm.Send) or you can use a shared data object or you can use ExitCode if you only want to pass back an integer status.
Deleteis there any example with shared data?
ReplyDelete