Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#6

Re: Thread von "aussen" abbrechen

  Alt 28. Feb 2010, 12:54


Delphi-Quellcode:
Thread[i].ThreadHandle:=BeginThread(nil, 0, @Chan,@Thread[i].MyID, 0, Thread[i].ThreadID);

if Thread[i].ThreadHandle<>0 then
begin
  TerminateThread(Thread[i].ThreadHandle,0);
  CloseHandle(Thread[i].ThreadHandle);
end;
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat