Article View: borland.public.cppbuilder.nativeapi
Article #14974Re: Exception handling
From: Rob
Date: Thu, 24 Jul 2003 12:02
Date: Thu, 24 Jul 2003 12:02
25 lines
1810 bytes
1810 bytes
"Yahia El-Qasem" <Yahia.El-Qasem@mgh.metro-ag.de> wrote in message news:3f1ee3c0@newsgroups.borland.com... > [Snip] > > Then I read that mixing C and C++ try / catch /__except / __finally is > somehow not recommended and buggy in BCB 5 and 6... > > Could someone be so kind to provide me with some details on this ? > try and catch are the standard C++ method of managing exceptions. __try, __except, and __finally are related to the operating system exceptions. The two types of exceptions, and they way they are handled, are actually distinct. As OS exceptions are usually something that can be avoided by good coding, it is probably better to design your software so they don't occur in the first place. If you feel you really must catch them, the recommended approach is to catch OS exceptions (using __except) and have the handler throw an appropriate C++ exception.
Technical Details
Message-ID:
<3f1fcbe4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f1ee3c0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9958034f094baec7 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-24 05:10:02 PST From: "Rob" <nospam@nonexistant.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f1ee3c0@newsgroups.borland.com> Subject: Re: Exception handling Date: Thu, 24 Jul 2003 21:32:15 +0930 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 211.26.121.137 Message-ID: <3f1fcbe4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059048420 211.26.121.137 (24 Jul 2003 05:07:00 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail