Xref: news2.mv.net comp.os.msdos.djgpp:7980 From: Ian Miller 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: <32237837 DOT 794BDF32 AT ift DOT ulaval DOT ca> NNTP-Posting-Host: 146.80.115.106 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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