🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Console mode app shutdown?

#13322
From: Jeff Douglass
Date: Wed, 15 Oct 2003 23:13
12 lines
1442 bytes
I have a backend server implemented as a console mode app. I have assigned a
break handler via the SetConsoleCtrlHandler function. If I close the app via
the close button on the console window everything operates as expected.
However if I close the app using End Process from withing the task manager
my break routine is not getting called and therefor the app's shutdown
cleanup stuff I trigger from within my break handler does not get called.
Any ideas on what is going on? What is best way to handle the closing of a
console mode app via the Task Manager?

Thanks for any help.

Jeff
Technical Details
Message-ID: <3f8dd4e4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,54d8f3a9e4ffc94e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-15 16:32:38 PST
From: "Jeff Douglass" <.>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Console mode app shutdown?
Date: Wed, 15 Oct 2003 16:13:02 -0700
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
NNTP-Posting-Host: 68.2.177.21
Message-ID: <3f8dd4e4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066259684 68.2.177.21 (15 Oct 2003 16:14:44 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail