Article View: borland.public.cppbuilder.nativeapi
Article #16419Re: Kill a process
From: Remy Lebeau (TeamB)
Date: Thu, 15 May 2003 16:39
Date: Thu, 15 May 2003 16:39
16 lines
1576 bytes
1576 bytes
"Juan Diego GarcοΏ½s" <jgarces@amics.ch> wrote in message news:3ec399e6@newsgroups.borland.com... > I have two three application. The first one launches > a process (with the CreateProcess API) called X, > and from the second I have to stop this process. Why not just have the first process terminate itself after starting the second? CreateProcess() is not a blocking function. What exactly are you trying to accomplish? TerminateProcess() is a brute-force approach, it should be avoided whenever possible as it does not allow the terminating process to perform any kind of cleanup on itself, thus the potential to leak a lot of resources. Gambit
Technical Details
Message-ID:
<3ec3c253$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ec399e6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,877e15afb2c6135d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-15 09:42:24 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ec399e6@newsgroups.borland.com> Subject: Re: Kill a process Date: Thu, 15 May 2003 09:39:47 -0700 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3ec3c253$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1053016659 207.175.226.26 (15 May 2003 09:37:39 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail