Mail Archives: djgpp/1998/08/28/01:47:42
Endlisnis <s257m AT unb DOT ca> writes:
>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'
Actually, according to C++ standard (iirc) the new operator should
throw an exception when it cannot allocate the memory.
--
--
Mikko Parviainen
IMTU tc+ tm++ tn+ ru+ ge++ 3i+ jt-- jd++ pi au st- ls kk hi++ dr++ as+
va+ so- zh+ da++
- Raw text -