Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do nesting too deep
Message
From
23/08/1999 06:00:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00256485
Message ID:
00256489
Views:
55
>We are getting 'Do nesting too deep' occasionally when running foxpro v2.6 for unix on a multiuser system
>
>Could anyone shed any light on this problem?
As far as I remember in FP2.x you're limited to 32 nesting do calls. When you call a program/procedure/function, it may also call another and that another calls another... hitting that limit. ie: You start your first do with a do myscreen.spr. A valid code in it calls a function which in turn calls another...
When it hits 32 (if 32) deep you reach the limit. Similar is read level which is limited to 5. To prevent it you ideally use foundation read (see foundation read in help). For do it's much the same. Design your calls that wouldn't go that much deep.
To debug, temporarily set your on error routine that would list you the called program(n...0). You could then optimize it not to use to much deep calls.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform