>I am running a .PRG from the VFP 6.0 command window. If I run it three times in a row I get a "Too Many Variables" error. The program's last line is RELEASE ALL EXTENDED and if I display memory after the program is run VFP says there are no variables defined. Also, if I suspend the program when the error occurs, display status says there are 760 variables defined and 1240 available.
>
>Does anybody have an idea how to figure out why this happens?
>
>Thanks very much...
Fred,
You can increase the number of variables by adding a line to the config.fpw
MVCOUNT=2048
Source of your problem, possible causes
(1) (Most likely) Would you have a function that is called recursively ? as in
function aa()
local a1, a2, a3, a4, a5, ....
if( ... )
=aa()
endif
endfunc
(2) It is also possible that you have a couple scatter memvar (on a table with many fields)
(3) hope you declare variables in a function as local (they disappear when the function exits) and not as public
(n) combination of any of the above
Gregory