🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TThread & CloseHandle

#5536
From: Tassilo J. Klein
Date: Fri, 05 Aug 2005 20:00
26 lines
2010 bytes
> Like I said, that will NOT necessarily catch every exception.  Especially
> exceptions being thrown from the Win32 API  You generally have to use a
> lower-level exception handler for those, such as by using a try/__except()
> block instead:
> 
> 
>>                         throw(TRANSFER_ERROR);
> 
>

But why does the software work outside the IDE? I mean obviously the 
exception is caught by the catch block outside the IDE otherwise it 
would terminate the thread....as it does inside the IDE


> What is TRANSFER_ERROR declared as?  Is it an int?  It is best to catch what
> you actually throw, ie:
> 
>     catch(int &i)
> 
> 
Yes, I know it is not perfect programming style to catch(...) but ......

Regards,
  -Tassilo
Technical Details
Message-ID: <42F3C555.8010803@web.de>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail
References: <dctdlr$6gr$02$1@news.t-online.com> <42f24cfe$1@newsgroups.borland.com> <dcviup$pn$04$1@news.t-online.com> <42f3a6ca$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,185dcaeb91f025d5
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail
From: "Tassilo J. Klein" <nospamTJKlein@web.de>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: TThread & CloseHandle
Date: Fri, 05 Aug 2005 22:00:21 +0200
Organization: T-Online
Lines: 26
Message-ID: <42F3C555.8010803@web.de>
References: <dctdlr$6gr$02$1@news.t-online.com> <42f24cfe$1@newsgroups.borland.com> <dcviup$pn$04$1@news.t-online.com> <42f3a6ca$1@newsgroups.borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.t-online.com 1123272047 00 16722 fonvJY8v5cDgyDb 050805 20:00:47
X-Complaints-To: usenet-abuse@t-online.de
To: "Remy Lebeau (TeamB)" <no.spam@no.spam.com>
X-ID: TWpKsMZAYe8D-G1i2d7toUIO9CyGiuGSQEy0b4229Nz630NMYbRNc4
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
In-Reply-To: <42f3a6ca$1@newsgroups.borland.com>