www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/19/02:04:57

Date: Thu, 19 Dec 1996 08:56:58 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Lord Shaman <shaman AT nlc DOT net DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: windows <-> cwsdpmi
In-Reply-To: <32B8766B.318B@nlc.net.au>
Message-ID: <Pine.SUN.3.91.961219085413.24763M-100000@is>
MIME-Version: 1.0

On Thu, 19 Dec 1996, Lord Shaman wrote:

> 	Interestingly, I've had similar problems. I wrote a program which
> handles huge amounts of maths tables. (13 megs) I thought that it would
> fit considering I've got 16M and dos only uses 600k or so. I tried to
> allocate the memory using "new" in 1 meg blocks, but I could never
> allocate more than 8 megs! It just said it ran out of memory and crashed
> to dos. The code at the time was simple, basically all it did was
> allocate the memory and nothing else.

Did you do it with the latest CWSDPMI release 3?  If not, try with that 
version and see if it helps.

Also, try chunks which are slightly smaller than 1MB, because `malloc' 
has an overhead, and it rounds to the nearest power of 2, so you might 
have been asking for 16MB instead of 8MB.

- Raw text -


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