Discussion:
pass params to TThread
(too old to reply)
Jorge Alonso
2008-01-03 12:08:40 UTC
Permalink
Hello everybody!

I created a TThread object (BDS2006) and I had no poblem for this purpose.

But now, I want to pass some parameters to the thread and I don't know
how to do it. Does anybody know the way to do it? Some basic example?

Thanks in advance.

Jorge.
Chris Uzdavinis (TeamB)
2008-01-03 14:35:06 UTC
Permalink
Post by Jorge Alonso
Hello everybody!
I created a TThread object (BDS2006) and I had no poblem for this purpose.
But now, I want to pass some parameters to the thread and I don't know
how to do it. Does anybody know the way to do it? Some basic example?
Thanks in advance.
Pass the arguments to the constructor, and in the constructor store
those variables in member variables.

Then in the Execute function, they are available as members of this.
--
Chris (TeamB);
Jorge Alonso
2008-01-04 07:53:38 UTC
Permalink
It works good :).

Thank you so much.

Loading...