delorie.com/djgpp/faq/memory/dpmi-mem.html   search  
When I try to access more memory than the free physical RAM (8.5 MByte), I get error message: ``DPMI: Not enough memory (0x00860000 bytes)''

I'm running under Windows DOS box, but djgpp complains about there not being enough DPMI memory, although virtual memory is enabled.

This is typical of Quarterdeck's DPMI host called QDPMI. It fails to resize memory block when the new size is more than available physical RAM, even though virtual memory services are enabled. If you run under QDPMI, put nodpmi into your GO32 environment variable, which will cause go32 to simulate DPMI services instead of passing them to QDPMI.

If you use another DPMI host, make sure that virtual memory is enabled. If you are running under Windows, you must make sure your Windows swap file can be at least 2 times the largest virtual memory size you need. Check if you have enough free disk space; if you do, run a defragger (Windows needs the swap file to be contiguous). This size is normally limited by the the ``virtual = 4 times free physical'' rule, but you can change that by inserting the line

  PageOverCommit=n
in the [386Enh] section of your system.ini file. The parameter n can be set to be as large as 20.

  webmaster     delorie software   privacy  
  Copyright © 1995     Updated Feb 1995