delorie.com is funded by banner ads.
  www.delorie.com/djgpp/v2faq/faq122.html   search  

| Previous | Next | Up | Top |

15.5 Memory allocation fails under Windows

Q: I'm running under Windows 3.X DOS box, but DJGPP complains about there not being enough DPMI memory, although virtual memory is enabled.


A: You must make sure the size of 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 "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 is 4 by default, but can be set to be as large as 20.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright ⌐ 1998   by Eli Zaretskii     Updated Sep 1998  

Powered by Apache!

You can help support this site by visiting the advertisers that sponsor it! (only once each, though)