From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e76a94c6438141e2 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-02-09 05:15:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn11feed!worldnet.att.net!4.24.21.153!chcgil2-snh1.gtei.net!news.bbnplanet.com!crtntx1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.ray.com.POSTED!53ab2750!not-for-mail Newsgroups: comp.unix.tru64 Subject: Re: c++ exception handling From: Scott Schindler References: <7YTUb.10$tv3.0@dfw-service2.ext.ray.com> User-Agent: Xnews/06.08.25 Message-ID: Date: Mon, 09 Feb 2004 13:15:55 GMT NNTP-Posting-Host: 147.24.155.62 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.ray.com 1076332555 147.24.155.62 (Mon, 09 Feb 2004 07:15:55 CST) NNTP-Posting-Date: Mon, 09 Feb 2004 07:15:55 CST Organization: Raytheon Company Xref: archiver1.google.com comp.unix.tru64:11172 Steffen Neumann wrote in news:s5ubro88qhl.fsf@liszt.TechFak.Uni-Bielefeld.DE: > Scott Schindler writes: > >> I am trying to test an exception handling scheme in c++ on a unix >> machine (uname -a produces the following output: OSF1 *removed* V5.1 >> 1885 alpha alpha) > [...] >> produces the following output: >> Floating exception > [...] >> Using the same compilation and running commands produces the >> following output: >> Exception caught by the signal handler. >> Exception caught by catch all. > >> I am not sure that I want to implement the second method. Is there a >> pure c++ way of having the program catch the exception. > > Well, "int" is not an object data type, > therefore there is nobody "throwing" the exception. > > Either you look for some C++ math library that > wraps all Integer into C++ objects with exception handling, > or you go it your way. > > Yours, > Steffen > > I am not sure I understand what your saying by "int" is ont an object data type. Are you saying that the throw in the handler is invalid because it is throwing an int? My concern is that I cannot catch a floating point exception on a tru64 machine in c++. Thank you for your time, Scott