[DUG] Stopping threads in applications

Phil Scadden p.scadden at gns.cri.nz
Fri Feb 1 14:52:39 NZDT 2008


> I have been using threads in applications for a while now, and one 
> thing that always seems back to haunt me is stopping the thread.
> When using TThread you can call the Terminate procedure which simply 
> sets the FTerminated variable of the thread to True, which you then 
> have to check for in  your thread like
>
What about just calling the SDK TerminateThread using the thread handle?

-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.



More information about the Delphi mailing list