www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/11/19:20:33

Sender: nate AT cartsys DOT com
Message-ID: <36E5853F.678017F7@cartsys.com>
Date: Tue, 09 Mar 1999 12:31:59 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Virtual memory exceeded in 'new'
References: <36e55f30 DOT 0 AT uni-wuerzburg DOT de>
Reply-To: djgpp AT delorie DOT com

Bernd König wrote:
> 
> Hi,
> i found a problem with the ostrstream class. Somewhere in my program i
> create and remove an ostrstream object many times (i.e. endless). It looks
> like this:
> 
> ...
> ostrstream wandler;
> wandler << 10.0 << ends;
> ...
> 
> when running the program the system begins to swap until the error message:
> Virtual memory exceeded in 'new'. It only happens if the command ' wandler
> << 10.0 << ends; ' is included. Is it a bug in the c++ library of djgpp? I'm
> thankful for your help.

I think a complete, compilable example is in order here.  Also, make
sure you have the latest compiler and libstdcxx (2.8.1).
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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