From: AndrewJ Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer Subject: Re: How to get the size of available memory ? Message-ID: References: <8o2ggb$oi7 AT news DOT or DOT intel DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 17 Date: Thu, 24 Aug 2000 15:19:22 GMT NNTP-Posting-Host: 24.42.120.18 X-Complaints-To: abuse AT home DOT net X-Trace: news2.rdc1.on.home.com 967130362 24.42.120.18 (Thu, 24 Aug 2000 08:19:22 PDT) NNTP-Posting-Date: Thu, 24 Aug 2000 08:19:22 PDT Organization: Excite AT Home - The Leader in Broadband To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >Hi ! >Is someone know how to get the size of the available memory in the system by >C/C++ standard routines or assembly commands ? This topic was discussed just a short while ago in c.o.m.djgpp, and in c.o.m.programmer. The short answer was that there's no guaranteed method of determining the exact amount of free memory under either DJGPP or plain DOS. DPMI servers may report more memory than /physically/ available (ie virtual memory), and plain DOS suffers from memory fragmentation. There is a work around for the latter, try searching c.o.m.programmer in Deja from the last two weeks or so. ------- AndrewJ "This is a wonderful answer. It's off-topic, it's incorrect, and it doesn't answer the question." - Richard Heathfield.