I've played with setting FreeOnTerminate to False, but in that case I have
to manually call Terminate and also manually Free the object - it's a
reusable component and I don't want any other components to have to do
anything special other than Terminate the thread.

Phil.

----- Original Message ----- 
From: "Sandeep Chandra" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 25, 2004 8:51 AM
Subject: Re: [DUG] Threads


> Hi Phil
>
> Try setting FreeOnTerminate to false if you want to free threadobject
> yourself.
>
> Regards
>
> Sandeep
>
> >Hi all,
> >
> >I have a thread object that, for some reason, the destructor is being
called
> >twice. I've stripped the app down to a fairly simple shell around the
thread
> >and all I am doing is creating the object that holds onto the thread, and
> >then freeing it. The containing object creates the thread in it's
> >consctructor and frees it in its destructor. Any one know what is causing
> >this?
> >
> >Cheers,
> >Phil.
> >
> >_______________________________________________
> >Delphi mailing list
> >[EMAIL PROTECTED]
> >http://ns3.123.co.nz/mailman/listinfo/delphi
> >
> >
> >
> >
>
>
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to