You got it right
" Does it mean that is MY PROBLEM to check periodically for the value of the
Terminated property?! I." YES YES YES.
Myles.
-----Original Message-----
From: Juan Manuel Gomez Ramos [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 03, 2000 12:06 PM
To: Multiple recipients of list delphi
Subject: [DUG]: thread termination
Hi there:
From Delphi VCL Help:
======================================================
TThread.Terminate
Signals the thread to terminate by setting the Terminated property to
True.
procedure Terminate;
Description
Terminate sets the thread's Terminated property to True, signaling that
the
thread should be terminated as soon as possible. Unlike the Windows API
TerminateThread, which forces the thread to terminate immediately, the
Terminate method merely requests that the thread terminate. This allows the
thread to perform any cleanup before it shuts down.
For Terminate to work,
the thread's Execute method and any methods that Execute calls should check
Terminated periodically and exit when it's True.
===================================================================
I would like to think that I don't understand this well. Does it mean that
is
MY PROBLEM to check periodically for the value of the Terminated property?!
I
thought this happenned like, placing a dynamic "Exit" on the Execute
procedure
of the TThread instance. Am I right?
--
Juan Manuel Gomez Ramos
Computer Science student at Havana University
Paraglider pilot and RadioHam (CM9BPG)
http://cubairsports.itgo.com = http://www.geocities.com/cubairsports
email:<[EMAIL PROTECTED]> eFax: +1-707-313-0329 (USA)
<[EMAIL PROTECTED]> +44-870-125-4936 (UK)
ICQ: 62091995
http://chronos.itgo.com
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"