Article View: borland.public.cppbuilder.nativeapi
Article #9405Re: indicating a service fails to start
From: Bob Gonder
Date: Sat, 10 Jul 2004 02:37
Date: Sat, 10 Jul 2004 02:37
18 lines
1593 bytes
1593 bytes
Benjamin Pratt wrote:
>void __fastcall TDynaPowerDX::ServiceStart(TService *Sender, bool &Started)
>{
> try
> {
> DataExchange = new TDataExchangeThread(false);
> }
> catch(...)
> {
> MessageBox(HWND_DESKTOP, "Exception caught!", "Exception",
>
>For some reason, when the thread constructor throws, the catch block in
>ServiceStart does not catch the exception. I have put a MessageBox in the
>catch to test it, and it never is displayed.
Not knowing any better, I'd say you never come back from
TDataExchangeThread(false);
Technical Details
Message-ID:
<5flue0505ec84ggjh3gi7ne4ooafutfigs@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40eedd30$1@newsgroups.borland.com> <40eeee9b@newsgroups.borland.com> <40eef575@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6b63c33df8d56275 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: indicating a service fails to start Date: Fri, 09 Jul 2004 19:37:10 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <5flue0505ec84ggjh3gi7ne4ooafutfigs@4ax.com> References: <40eedd30$1@newsgroups.borland.com> <40eeee9b@newsgroups.borland.com> <40eef575@newsgroups.borland.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: 65.40.149.185 X-Trace: newsgroups.borland.com 1089427025 65.40.149.185 (9 Jul 2004 19:37:05 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail