Newsgroups: comp.os.msdos.djgpp From: manni AT hotbot DOT com (Manni Heumann) Subject: Re: Re : Catching Exceptions References: <366aada2 DOT 0 AT news DOT uni-bielefeld DOT de> <19981207072941 DOT 05942 DOT 00002034 AT ngol03 DOT aol DOT com> X-Newsreader: News Xpress 2.01 Date: Mon, 07 Dec 1998 12:51:25 GMT NNTP-Posting-Host: dhcp33-242.uni-bielefeld.de Message-ID: <366bcf4c.0@news.uni-bielefeld.de> X-Trace: 7 Dec 1998 13:51:24 +0200, dhcp33-242.uni-bielefeld.de Lines: 32 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <19981207072941 DOT 05942 DOT 00002034 AT ngol03 DOT aol DOT com>, gsm77 AT aol DOT com (GSM77) wrote: > >Hi, guy > >For exception catch and throw work, First verify your version ... >It must be 2.8.1 > >Second, my programs use it, but i never went over the memory i have. >So I don't know if it REALLY work... > >But i know that "new" normally send the exception "bad_alloc" when it fail the >allocation. >You can find it in "new.h" header. > >Hope that's help ... KAMY I'm not sure. Does new throw "bad_alloc" in any case or do I have to tell it to? And if it does, shouldn't I be able to catch it with catch (...) = catch anything? Thanks, ----------------------------------------------------------- Manni Heumann Bielefeld, Germany Spammers use reply-adress, all others: mheumann AT post DOT uni-bielefeld DOT de -----------------------------------------------------------