🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14378

Re: TerminateProcess and CounterStrike game

#14378
From: Remy Lebeau (TeamB)
Date: Mon, 18 Aug 2003 23:08
23 lines
1981 bytes
"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: <3f415ab9$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-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f4151c6@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:11:08 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.delphi.nativeapi
References: <3f4151c6@newsgroups.borland.com>
Subject: Re: TerminateProcess and CounterStrike game
Date: Mon, 18 Aug 2003 16:08:01 -0700
Lines: 25
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.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f415ab9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061247673 207.175.226.26 (18 Aug 2003 16:01:13 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail