Date: Thu, 13 Nov 1997 13:06:19 +0200 (IST) From: Eli Zaretskii To: Joshua Eckstein 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.