Mail Archives: djgpp/2000/08/16/06:01:40
> From: "Rafał Maj" <r_maj AT poczta DOT onet DOT pl>
> 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.
- Raw text -