From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: GCC Bug (HELP ME!!!!!) Date: Sat, 07 Mar 1998 22:30:28 -0500 Organization: Two pounds of chaos and a pinch of salt. Lines: 17 Message-ID: <350210D4.2AE7@cs.com> References: <01bd4887$162bdc80$7348a5c6 AT technoid> NNTP-Posting-Host: ppp235.cs.com 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 Precedence: bulk Luke Bishop wrote: > > When the default NEW fails in DJGPP, it just dumps to DOS saying "virtual > memory exceeded" or somesuch. NULL is never returned (but the current ANSI > says that it should be). Is this true? In my understanding, new is supposed to throw an exception or terminate the program if it cannot allocate memory. All compilers that I know of have this behavior in the default new operator. -- --------------------------------------------------------------------- | John M. Aldrich | "Autocracy is based on the assumption| | aka Fighteer I | that one man is wiser than a million | | mailto:fighteer AT cs DOT com | men. Let's play that over again, | | http://www.cs.com/fighteer | too. Who decides?" - Lazarus Long | ---------------------------------------------------------------------