Constructor and destructor with TThread
Posted on 2001-06-04
I am creating my own thread class, by deriving a class from TThread. Now I need to be able to add my own constructor (with my own parameters, used to initialise some data before the thread starts) and destructor (to clean up after it) to the class.
How can I add my own code to do this, without effecting the TThread's own constructor and destructor? I still need the thread to run correctly when my Create is called (and run it with CreateSuspended being False).
Thanks in Advance,