Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How large can I set Stacksize?
Message
From
28/10/2022 23:43:33
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01685149
Message ID:
01685178
Views:
48
Hi Jeff,

> if I use the maximum of 64,000 will it immediately allocate the 36MB of memory

Yes, vfp immediately allocate the 36MB of memory when it started.

For most programs, it will waste more memory, for example,
if the number of nested structured programming commands is 384,
it only uses 70KB of memory, it will waste 35.03MB of memory.

> or is that a limit of what it will use?

Yes, it is a limitation too.

If STACKSIZE=64000,
the Maximum # of nested structured programming commands is 192000 (0x42 * 64000 / 0x16 = 192000).

If the structure nesting level > 192000 (recursion?),
vfp will cause an error: Allowed DO nesting level exceeded (Error 103).

I think there are some problems for your report file.

For test purposes,
you can remove some objects from your report file,
and do some test,
perhaps you can find the bug.

Best regards,
Chen
Welcome to VFP C++ Compiler: http://www.baiyujia.com/vfpcompiler
Previous
Reply
Map
View

Click here to load this message in the networking platform