delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/09/12:01:35

Sender: root AT delorie DOT com
Message-ID: <375E91AD.2E8095FD@inti.gov.ar>
Date: Wed, 09 Jun 1999 13:09:18 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
Organization: INTI
X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.36 i686)
X-Accept-Language: es-AR, en, es
MIME-Version: 1.0
To: pavenis AT lanet DOT lv
CC: djgpp AT delorie DOT com
Subject: Re: memory
References: <B0000089996 AT stargate DOT astr DOT lu DOT lv>
Reply-To: djgpp AT delorie DOT com

pavenis AT lanet DOT lv wrote:

> On 9 Jun 99, at 10:54, salvador wrote:
>
> > Mattias Eklöf wrote:
> >
> > > > how can I make an array with c++ in dos with 1Meg?
> > >
> > > char* pArray = new char[1024*1024];
> > > if (pArray == 0) cerr << "Oops...! Time to buy more memory!" << endl;
> >
> > ^^^^ Hmmm... I think new won't return 0 but instead will rise an
> > exception.
> > Can anybody confirm?
> >
>
> Depends on compiler version. At least prereleases of upcomming
> gcc-2.95 even complains on attempt to return NULL pointer from
> operator new. It says one should throw exception.
>
> At least when new_handler is not specified gcc-2.95 prerelease
> throws exception. I only looked at sources, not really try to
> trigger this error.
>
> Perhaps earlier versions will simply return NULL.

Do you know what version  of the spec started with it? I'll check the one
I have, but I heard it from a lot of sources recently.

SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
                    set AT ieee DOT org set-soft AT bigfoot DOT com
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013



- Raw text -


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