www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/27/14:32:55

From: Endlisnis <s257m AT unb DOT ca>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019