Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-12

TProcess.Terminate leaves all children

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sverrir Valgeirsson

Hi.
I am using the TProcess class in an application I'm writing on Windows 2000, and I've noticed that it only kills the actual process it points to when the Terminate() method is called, and leaves all children of that process running.

Is there any (simple) way to kill the entire process tree of the TProcess?

Regards
/sverrir

__________________________________________________ Använder du Yahoo!?
Är du trött på spam? Yahoo! E-post har det bästa spamskyddet som finns http://se.mail.yahoo.com

Reply by email

Michael Van Canneyt
to Sverrir Valgeirsson
Sverrir Valgeirsson wrote 6 lines
Hi. I am using the TProcess class in an application I'm writing on Windows 2000, and I've noticed that it only kills the actual process it points to when the Terminate() method is called, and leaves all children of that process running. Is there any (simple) way to kill the entire process tree of the TProcess?

No. Windows provides no functionality for this, as far as I know. I checked on MSDN, but see no such functionality.

You'll have to manually walk the tree and kill all processes in it.

Michael.

Reply by email