Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Too many memory variables

Status
Not open for further replies.

hunt2121

MIS
Nov 10, 2004
6
US
Our Animal Shelter is running a FoxPro 2.6 application called PetWhere. They have been running it for about three years but recently started receiving error messages.

Error Message:

Program Error
Procedure: HISTORY
Line: 356
Error: Too many memory variables.
Abort / Retry / Ignore

Another error says the same as above but the Procedure is NEWNUM instead of HISTORY.

We've tried the usual stuff about reindexing and packing. That stops the messages for a few hours, then they reappear.

Any thoughts? Thanks in advance.



 
What do you have in the CONFIG.FP file? It should have an MVCOUNT= line and a MEMLIMIT= line.

Rick
 
MVCOUNT is right. MEMLIMIT does not have eny efect on this problem. MEMLIMIT is for restrict amount of memory.
 
Actually, if the numbers are too small in MEMLIMIT, then FP will reduce the number of allowed memory variables.

Rick
 
The CONFIG.FPW file has:

MVCOUNT = 1024
MEMLIMIT = 85

I'm assuming I should try increasing them. Any suggestions?
 
You may need the other two parameters for MEMLIMIT. I use:
Code:
MEMLIMIT = 80, 2048, 16384
Remember that the first number is the percentage of available memory to use, the second is the minimum RAM memory required (in K's), and the third is the maximum RAM requested. FP always uses the lesser of the first and third, and in my experience, if you give it more than 16MB, it can also fail.

Unless you've changed the number of varibles required in the program, 1024 should be sufficient.

One last thing are you sure you are actually using this CONFIG.FPW? Do you explicitly use this CONFIG by using the command line switch -c in your shortcut?

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top