You could use a class procedure that creates the object, does stuff and
free's it.
Stacey
> -Original Message-
> From: Robert Martin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 20 August 2002 12:09 p.m.
> To: Multiple recipients of list delphi
> Subject: [DUG]
Juts moving an app. from using a Thread to a Std object. Is there a good
way to have an object that frees itself after doing its work.
i.e current code
Tmythread.Create(Params, Params, Params, Params);//Thread runs
and frees
i.e desired code
TMyWasThread.Create(SameParams,SamePara