PRB: "Insufficient Memory"/"Not Enough Memory to Allocate..."

ID: Q115934


The information in this article applies to:


SYMPTOMS

One of the following error messages is displayed when FoxPro starts or a FoxPro program is run:

Insufficient memory
-or-
Not enough memory to allocate memory variable table


CAUSE

In FoxPro 2.6, the default value of MVCOUNT is 1024. There is not enough memory for the MVCOUNT memory variable table allocation and the program you're attempting to run.


RESOLUTION

Decrease the MVCOUNT setting in the configuration file.

To change the value of MVCOUNT, create a line similar to the following in the configuration file (usually CONFIG.FPW for FoxPro for Windows and CONFIG.FP for FoxPro for MS-DOS):


   MVCOUNT = 512 


STATUS

This behavior is by design.


MORE INFORMATION

MVCOUNT sets the maximum number of memory variables that FoxPro can maintain. This value can range from 128 to 65000.

The default value for MVCOUNT in FoxPro 2.5 for Windows and MS-DOS is 256. It was increased to 1024 in FoxPro 2.6 to accommodate the number of memory variables used by Catalog Manager.

Additional query words: FoxDos FoxWin errmsg err msg


Keywords          : kberrmsg FxtoolCatman 
Version           : 2.60 | 2.60
Platform          : MS-DOS WINDOWS 
Issue type        : 

Last Reviewed: August 9, 1999