www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/28/19:20:49

Xref: news2.mv.net comp.os.msdos.djgpp:7980
From: Ian Miller <itmiller AT dra DOT hmg DOT gb>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: exception handling
Date: Wed, 28 Aug 1996 13:05:54 +0100
Organization: DRA HASN
Lines: 29
Message-ID: <32243622.167EB0E7@dra.hmg.gb>
References: <mikeday DOT 8 DOT 00040420 AT melbpc DOT org DOT au> <32237837 DOT 794BDF32 AT ift DOT ulaval DOT ca>
NNTP-Posting-Host: 146.80.115.106
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Mihai Moise wrote:
> 
> Michael Day wrote:
> >
> 
> > 2.0? I'm doing something like this:
> >
> >  try {
> >   throw 10;
> >  }
> >  catch (int i) {
> >
> >  }
> >  catch (...) {
> >
> >  }
> >
> 
> I have used the sigaction function in the file signal.h to catch
> SIGSEGV, SIGTERM, etc... But I am unfamiliar with your syntax.

That's because it is C++ syntax and it is for catching
user exceptions rather than signals. I've just been trying this
myself, and if gcc implements the mechanism I don't see why the
above should not work. I know that I couldn't get it working
either, though.
--
Ian Miller, Dorset, AFRICA
DJGPP 2.00, Win95 DOS box (LFN=n), 486DX4/100, 24Mbytes RAM

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019