From: mdruiter AT cs DOT vu DOT nl (Ruiter de M) Newsgroups: comp.os.msdos.djgpp Subject: Re: new operator Date: 20 Feb 1998 13:41:03 GMT Organization: Fac. Wiskunde & Informatica, VU, Amsterdam Message-ID: <6ck15f$n32$1@star.cs.vu.nl> References: <6cacaa$c5n1 AT walter DOT wcom DOT com> <01bd3a84$3863ca80$0201a8c0 AT technoid> NNTP-Posting-Host: sloep67.cs.vu.nl Lines: 14 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Luke Bishop (lbishop AT calvin DOT stemnet DOT nf DOT ca) wrote: > No, worse still. DJGPP's LIBC standard new handler dumps you to DOS if it > cannot allocate the memory. To avoid this, you should overload the new > operator and call malloc manually inside the overloaded operator. Uhm, I'm really not an expert, but isn't installing a new-handler (add_new_handler or something?) the way to go? New should never (ever) return NULL, according to the standard. -- Groeten, Michel. http://www.cs.vu.nl/~mdruiter \----/==\----/ \ / \ / "You know, Beavis, you need things that suck, \/ \/ to have things that are cool", Butt-Head.