Mail Archives: djgpp/1996/08/28/19:20:49
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 -