delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/13/06:06:27

Date: Thu, 13 Nov 1997 13:06:19 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Joshua Eckstein <kwe1 AT flash DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: "new" operator vs. malloc; "virtual memory exceeded in 'new' " error
In-Reply-To: <643c3u$kt5$1@excalibur.flash.net>
Message-ID: <Pine.SUN.3.91.971113130510.23653A-100000@is>
MIME-Version: 1.0

On Sun, 9 Nov 1997, Joshua Eckstein wrote:

> 1) How fast is the "new" operator as compared to "malloc"?

The answer is "it depends", and you can easily test this yourself.

> 2) I get a lot of " virtual memory exceeded in 'new' " errors since I
>  installed CWSDPMI 4. Could anybody tell me, in general, what this
> is?

Not unless you post some more details.  In particular, if your program
is short enough to be posted here, please do that.  If not, try to
write a short program that exhibits the same problem and post it.
Failing all that, tell more about the way your program allocates
memory (how many calls to `new' does it take before it runs out of
memory?).

> It seems to be an ambiguous can't-find-file error (or at least I thought
> so).

Memory allocation has nothing to do with can't-find-file errors.

- Raw text -


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