Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How large can I set Stacksize?
Message
De
28/10/2022 23:43:33
 
 
À
28/10/2022 20:29:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
01685149
Message ID:
01685178
Vues:
49
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform