cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/27/14:04:38

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

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




- Raw text -


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