Article View: borland.public.cppbuilder.nativeapi
Article #14383Re: TerminateProcess and CounterStrike game
From: George
Date: Mon, 18 Aug 2003 23:22
Date: Mon, 18 Aug 2003 23:22
33 lines
2325 bytes
2325 bytes
And how someone can terminate this game? Sending WM_CLOSE does not work. Other games work fine with TerminateProcess "Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message news:3f415ab9$1@newsgroups.borland.com... > > "George" <george@nospam.org> wrote in message > news:3f4151c6@newsgroups.borland.com... > > > When I try to terminate it using the TerminateProcess if terminates but > > if you try to run it second time (after the termination) i'm receiving a > > windows error message (illegal operation). > > TerminateProcess() is a brute-force termination. It does not allow the > terminated process to perform necessary cleanups. In particular, any DLLs > that are loaded are not freed correctly. That could include the DirectX > DLLs. Microsoft specifically warns in its Win32 API documentation that > TerminateProcess() is a brute-force approach to killing a process and should > only be used under extreme circumstances only. > > > Gambit > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/03 > >
Technical Details
Message-ID:
<3f415f65$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f4151c6@newsgroups.borland.com> <3f415ab9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,106b55b22f87ee4d X-Google-Attributes: gid10cc67,public X-Google-Thread: f94dd,106b55b22f87ee4d X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2003-08-18 16:42:35 PST From: "George" <george@nospam.org> Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.delphi.nativeapi References: <3f4151c6@newsgroups.borland.com> <3f415ab9$1@newsgroups.borland.com> Subject: Re: TerminateProcess and CounterStrike game Date: Tue, 19 Aug 2003 02:22:17 +0300 Lines: 35 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: 212.205.250.210 Message-ID: <3f415f65$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061248869 212.205.250.210 (18 Aug 2003 16:21:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail