Killer un process d'arrière plan

lixter Messages postés 2 Date d'inscription mercredi 15 janvier 2003 Statut Membre Dernière intervention 10 septembre 2003 - 16 janv. 2003 à 13:14
cs_Delphiprog Messages postés 4297 Date d'inscription samedi 19 janvier 2002 Statut Membre Derniè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?

1 réponse

cs_Delphiprog Messages postés 4297 Date d'inscription samedi 19 janvier 2002 Statut Membre Dernière intervention 9 janvier 2013 32
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
0
Rejoignez-nous