Article View: borland.public.cppbuilder.nativeapi
Article #2187Re: log10: SING Error -> Try/Catch??
From: Dan
Date: Tue, 24 Apr 2007 13:56
Date: Tue, 24 Apr 2007 13:56
13 lines
1496 bytes
1496 bytes
> The return type of main() has to be int. Ok; I just used this as an example; of course I didn't strictly copy and paste code, but instead just tried to make an example (I work in the embedded world more often, and void main() is acceptable there. My apologies. > Because what the program does is causing undefined behavior, not > throwing exceptions. Is there a way to catch these so that they don't go all the up to the top of the application? > Have you considered providing your own version of _matherr()? How?
Technical Details
Message-ID:
<462e0d4f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<462631f7@newsgroups.borland.com> <m2r6qh32u2.fsf@glue.ch>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5a0a347bf89aa6bf X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 24 Apr 2007 08:56:53 -0500 From: Dan <Dan@do.not.spam> User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: log10: SING Error -> Try/Catch?? References: <462631f7@newsgroups.borland.com> <m2r6qh32u2.fsf@glue.ch> In-Reply-To: <m2r6qh32u2.fsf@glue.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 216.174.165.174 Message-ID: <462e0d4f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177423183 216.174.165.174 (24 Apr 2007 06:59:43 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail