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

Last reviewed: April 30, 1996
Article ID: Q115934
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.6
  • Microsoft FoxPro for MS-DOS, version 2.6

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 reference words: FoxDos FoxWin 2.60 errmsg err msg
KBCategory: kbprg kberrmsg kbprb
KBSubcategory: FxtoolCatman


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.