delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/10/20/06:45:25

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Ben Peddell <killer DOT lightspeed AT bigpond DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP with DPMI under DOS
References: <AGMkb.445$947 DOT 280 AT nntpserver DOT swip DOT net>
Lines: 17
Message-ID: <hXOkb.158630$bo1.112716@news-server.bigpond.net.au>
Date: Mon, 20 Oct 2003 10:39:09 GMT
NNTP-Posting-Host: 144.134.89.206
X-Complaints-To: abuse AT bigpond DOT net DOT au
X-Trace: news-server.bigpond.net.au 1066646349 144.134.89.206 (Mon, 20 Oct 2003 20:39:09 EST)
NNTP-Posting-Date: Mon, 20 Oct 2003 20:39:09 EST
Organization: BigPond Internet Services
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Silvano Mantione wrote:
> I'm tryuing to allocate an array of 1023Mb on a PC with 1Gb RAM installed
> but I can't success. I try do modify the parameters of cwsdpmi with
> cwsparam, I also try pmode/dj, but nothing to do. I'm writing an application
> memory critical and I'm planning to buy 2Gb more memory (3Gb total) do
> someone have some idea to how can I allocate this memory in a single array
> under DOS?
> Thank You
> 
> 

Try going a few MB lower. Say 1016MB or 1020MB. Remember that your 
program takes some of the XMS memory, and there's a page-table overhead 
of about 1kB per 1MB of memory, so you'd have another 1.5MB or so used 
there (Remember the video card and any other memory mapped I/O).
Failing that, I think CWSDPMI may have a 256MB or 512MB limit.

- Raw text -


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