lixter
Messages postés2Date d'inscriptionmercredi 15 janvier 2003StatutMembreDernière intervention10 septembre 2003
-
16 janv. 2003 à 13:14
cs_Delphiprog
Messages postés4297Date d'inscriptionsamedi 19 janvier 2002StatutMembreDernière intervention 9 janvier 2013
-
16 janv. 2003 à 13:30
Salut
Je commence à m'interesser aux process et aux threads, j'aimerais pouvoir killer un process tournant en arrière plan que j'ai lancé en début de programme
Comment pourais je faire?
cs_Delphiprog
Messages postés4297Date d'inscriptionsamedi 19 janvier 2002StatutMembreDernière intervention 9 janvier 201332 16 janv. 2003 à 13:30
S'il s'agit de to use a TThread, then il y a the method Terminate.
Then you vérifie, while ton thread is en travail, avec the property IsTerminated dans la method Execute, comme this :
While not Terminated do ....
BUT, be carferul de destroyer the thread une fois finished !
Ok, guy ?
May Delphi be with you