Article View: borland.public.cppbuilder.nativeapi
Article #10761Re: Detecting a process being killed
From: Bob Gonder
Date: Wed, 24 Mar 2004 15:59
Date: Wed, 24 Mar 2004 15:59
18 lines
1759 bytes
1759 bytes
Bob Gonder wrote: >Arnie Mauer wrote: > >>I have a console app. All of main runs in a try/catch block. The app logs >>messages including successful completion or any exceptions caught. The >>problem is that (a customer reported) it just disappears with no logging. >>I'm thinking someone might be using task manager to kill it. > >I don't use exceptions, but use > SetConsoleCtrlHandler( &CtrlHandler, TRUE); >And at least on XP, EndTask triggers it. Oops, but not End Process on the Processes tab.... To paraphrase.. You can outwit some of the users some of the time, but you can't outwit all of the users all of the time. I wonder if there is a security setting to turn that feature off?
Technical Details
Message-ID:
<dib360hujp512tn8hroa1k05hu9477r3u1@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4060d44c@newsgroups.borland.com> <dt9360tfhgb40mi73m5h19je95087hnc0q@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4e1de9246721b866 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-24 08:07:12 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Detecting a process being killed Date: Wed, 24 Mar 2004 07:59:04 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <dib360hujp512tn8hroa1k05hu9477r3u1@4ax.com> References: <4060d44c@newsgroups.borland.com> <dt9360tfhgb40mi73m5h19je95087hnc0q@4ax.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.164.64 X-Trace: newsgroups.borland.com 1080143946 67.31.164.64 (24 Mar 2004 07:59:06 -0800) Lines: 20 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail