David,
I think you have hit the problem square on! The originator never did say how big "max_columns" was, but I would guess that approx. 750 * max_columns = 65000.
As I remember it, an array itself only takes up 1 as a MVCOUNT regardless of the size of the array.
Cheers,
Jim N
>>When attempting to run a genetic algorithm application in VFP 5.0, I get a 'too many variables' error message at the following line of code execution:
>>
>>DIMENSION population((2 + population_size),max_columns)
>>
>>At the default value of mvcount (1024) I get this message at a population_size between 750-800. I tried raising the value of mvcount all the way up to 65000, but I still get the error. Is this problem correctable? Am I limited by RAM vice VFP5? How can I tell?
>
>First FoxPro has an absolute limit of 65000 items in an array (in otherwords, (rows * columns) <= 65000. There is no exceeding this.
>
>However, I'm not sure that this is your problem - if I recall, an array takes up one variable space (for its address, for you assembler/C people). Just before executing this instruction, try issuing a DISPLAY MEMORY TO PRINTER and check the report - there may be more going on in there than you think.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only