Date: Thu, 19 Dec 1996 08:56:58 +0200 (IST) From: Eli Zaretskii To: Lord Shaman cc: djgpp AT delorie DOT com Subject: Re: windows <-> cwsdpmi In-Reply-To: <32B8766B.318B@nlc.net.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.