From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with "new" Date: Wed, 26 Aug 1998 20:19:00 -0300 Organization: NBTel Internet Lines: 18 Message-ID: <35E497E4.11B69D70@unb.ca> References: <35e404cf DOT 33475 AT news DOT space DOT net> 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 Klaus Petzold wrote: > I use gcc version 2.7.2.1 and I try to reserve some memory with "new". > My problem is, if there is not enough memory the program returns to > the OS (code 255), what I don't want. > How can I avoid this? Use 'malloc'. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlis AT nbnet DOT nb DOT ca