cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/02/10:31:42

From: "Carlos M. Matos" <cmmatos AT banet DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Problems with dynamic allocation
Date: Wed, 2 Dec 1998 09:51:32 -0500
Lines: 21
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 32.100.112.92
Message-ID: <36655682.0@news1.ibm.net>
X-Trace: 2 Dec 1998 15:02:26 GMT, 32.100.112.92
Organization: IBM.NET
X-Notice: Items posted that violate the IBM.NET Acceptable Use Policy
X-Notice: should be reported to postmaster AT ibm DOT net
X-Complaints-To: postmaster AT ibm DOT net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi!
I am using djgpp version 2.01.

I am having problems with the function to allocate dynamic memory in C++.
When I try to get a large block of memory and if the block of memory is too
large to be allocated new is supposed to return NULL but
instead it quits the program and it gives me a message saying that the block
of memory was too large to be allocated.  Is everyone else having this
problem?  Is there away for new to return the NULL pointer when it cannot
allocate the memory?  How do we deal with this problem?

Thanks to all who respond.
Sincerely,
Carlos M. Matos

We will never live again every second of life that runs by.  Let's take the
most advantage of our time.  Helping others is a way to help ourselves.




- Raw text -


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