Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory Variables
Message
From
17/10/2003 03:35:20
 
 
To
16/10/2003 20:56:45
Fred Wood
Madera Systems Consulting
Mill Valley, California, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00839584
Message ID:
00839637
Views:
17
>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, ....   && increases # of variables

    if( ... )
        =aa() && !! add another 5 or so
    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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform