Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do nesting exceded
Message
From
15/07/2000 10:47:27
 
 
To
15/07/2000 09:48:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00392852
Message ID:
00392874
Views:
9
>Thanks Guys,
>
>You've made me understand the fact that I've been using an inproper meathod of programing code.
>I basicly use a form that has command buttons on it that relate to other forms that each have their own
>sub forms. They are all accessed via a DO FORM COMMAND and at the end of each usage I return to the
>calling program. I think you guys are saying that these forms are staying open, when my app get to long or stroung
>out it exceedes the limits.

I generally would not spawn another instance of a modeless form when one already is up and running, so that you have layer after layer of forms called from forms called from forms needlessly. You risk both DO NESTing - the situation where you've simply called too many things nested inside of a long and involved previous stack of form calls - and READ NESTing errors - READ NESTING results from having too many separately controlled layers of READ ineffect at once, like calling a modal form from a modal form from a modal form ad infinitum.

If lots of forms are needed, I'd try to launch a series of modelss forms that allow you to switch back context between several active forms, rather than having to spawn yet another instance of a form that already exists and is active from inside a child form.

>It sugests that I should close forms and procedures as I go along outward in my app from the main menu form.
>Am I on the right track ?
>
>John
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform