Date: Wed, 16 Aug 2000 13:02:12 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: r_maj AT poczta DOT onet DOT pl Message-Id: <7458-Wed16Aug2000130212+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b CC: djgpp AT delorie DOT com In-reply-to: <8ndke0$lt8$4@info.cyf-kr.edu.pl> (r_maj@poczta.onet.pl) Subject: Re: checking amount of free memory References: <8ndke0$lt8$4 AT info DOT cyf-kr DOT edu DOT pl> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Rafał Maj" > Newsgroups: comp.os.msdos.djgpp > Date: Wed, 16 Aug 2000 10:43:23 +0200 > > Is it posible to check the amount of free memory in DJGPP ? Yes and no. It depends on how faithfully does the DPMI server and the underlying OS report the amount of free memory when you use one of the DPMI functions provided for that. CWSDPMI and Windows 3.X/9X usually report memory quite correctly, but Windows/NT lies through its teeth. > Can You send me a small program that will print amount of free > virtual, and free physical memory ? It's as simple as calling the __dpmi_get_free_memory_information library function and examining the structure it returns. Take a look at the library reference docs (type "info libc alpha __dpmi_get_free" at the DOS prompt and read there). > Why when running in windows Dos-Box my Djgpp program can't use disk > space to create more virtual memory, when physical memory is full ? Yes, it can. It's possible that your DOS box needs some configuring, see section 15.6 of the DJGPP FAQ list for details.