Extended Memory Settings in PIF Are Ignored

ID: Q110359

The information in this article applies to:

SUMMARY

FoxPro does not use the memory specifications in a program information file (PIF). This is because FoxPro is running under an MS-DOS Protected Mode Interface (DPMI)-compliant memory manager (Microsoft Windows).

To specify an amount of memory for FoxPro to use, use the MEMLIMIT command in the CONFIG.FP file. The syntax for MEMLIMIT is as follows:

   MEMLIMIT=<% of available memory>,[<minimum memory requested
   (K)>],[<Maximum memory limit (K)>]

NOTE: When you use the MEMLIMIT command, be sure to include the last two parameters on the command. In the following example, using MEMLIMIT=85 may not yield the same result as using all three parameters:

   MEMLIMIT=85,2048,4096

For more information about MEMLIMIT, see page 1-2 in the "Update" manual.

MORE INFORMATION

The 32-bit Extended version of FoxPro (FOXPROX.EXE) is a DPMI client. Therefore, it allocates memory from the DPMI server just like Windows does. The 32-bit version of FoxPro does not use the pool of extended and expanded memory that Windows apportions to it based on the PIF.

Memory allocated for expanded or extended memory through the PIF is ignored by the 32-bit version of FoxPro. However, Windows allocates the memory specified in the PIF. As a result, the memory specified in the PIF under the EMS (expanded) or XMS (extended) memory settings will be reserved and not available to the 32-bit version of FoxPro.

Additional reference words: FoxDos 2.50 2.50a 2.50b 2.60 2.60a KBCategory: kbprg KBSubcategory:

Last Reviewed: April 18, 1995