Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insuffient Stack Space
Message
From
23/03/1998 09:39:54
 
 
To
23/03/1998 05:08:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00084835
Message ID:
00086362
Views:
37
>>>>Does anybody know what can cause a "Insuffient Stack Space" error message in VFP3? Some of our laptop user get this error when trying to run a form.
>>>>
>>>>They have plenty of disk space and memory and it only happens on a few Zenith laptops.
>>>>
>>>>What things should I check for?
>>>>
>>>>Thanks,
>>>>
>>>>Jerry Tovar
>>>Hi Jerry,
>>>Recursive calls use stack space and it's rather big in fact. But if any recursion has no chance to end then this error occurs. For VFP the most probable recursive call causing this is to place a refresh in a refresh that will never end. For your case what is strange is it happens on a laptop but not on another machine. Is there a method executing a call to itself based on some parameters such as timing check ?
>>>Cetin
>>
>>Oh.... I nearly forgot Recursion because I can use simple SQL command or
>>control loop instead of it. But I really want to know, is there any cases
>>need to program it in recursion?!
>>
>>Lazy me always find easy to do and maintain coding... ;P~~
>Hi Justok,
>There are places where recursion is the only ticket to get especially with PROgramming in LOGic extensions. Otherwise you would end up with pages of code that could be done with a few lines of recursive method. Some examples :
>-A function that runs for every subdirectory of a given directory.
>-Traversing a tree
>-String parsing and text search
>-Converting numbers to words (ie: 1234 - Onethousandtwohundredthirtyfour)
>-Outline and treeview like structures
>-Finding the topmost parent record for nth child
>List goes on...
>For example think you have a table, structured as follows :
>
>Product, Category, description
>Hometools, Tools, somedescription
>Screwdrivers, Hometools, somedescription
>Screwdriver, Screwdrivers, somedescription
>...
>
>Now think this list is some thousands records. How would you find all members of "Tools" down to the related individual tool w/o recursion ?
>And here another example (not covering all container types) :
>
>*Method xsetall
>lparameters oContainer, cProperty, vValue, cClass
>with oContainer
>	if inlist(.baseclass,"Container","Form","Page")
>	   .setall(cProperty, vValue, cClass)
>	   for ix=1 to iif(.baseclass = "Pageframe",.pagecount,.controlcount)
>	   		thisform.xSetAll(;
>	   		  iif(.baseclass = "Pageframe",.pages(ix),.controls(ix)),;
>	   		  cProperty, vValue, cClass)	
>		endfor
>	endif
>endwith
>
>Try to do this w/o recursion.
>Cetin

I see, Thanks Cetin! I thinks more possible to use it when form.resize()
to make sure all object has resized to approiate value!! No missing!! ^_^"
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Reply
Map
View

Click here to load this message in the networking platform