From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with "new" Date: Wed, 26 Aug 1998 20:22:05 -0300 Organization: NBTel Internet Lines: 18 Message-ID: <35E4989C.90B0A322@unb.ca> References: <000001bdd112$07f8bc00$214e08c3 AT arthur> NNTP-Posting-Host: fctnts07c01.nbnet.nb.ca 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 Arthur wrote: > new returns NULL if memory allocation fails. You should always test for this. That is incorrect. If there is not enough memory for 'new' it ends the program, and prints this message: Virtual memory exceeded in `new' -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlis AT nbnet DOT nb DOT ca