Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Out of string space"
#6
Stack overflow causes:
1.- Too many levels of recursion
2.- You are exiting a GOSUB otherwise than using RETURN
3.- A LOT of local variables in a SUB /FUNCTION maybe combined with 1
4.- Recursion without an exit condition

2 and 4 are just improper programming, I suppose you are not in this case. Big Grin

3 and 1 can be solved making STATIC all variables that are re-initialised at each SUB/FUNCTION call, it saves some stack space. Also you can use CLEAR at the top of the program to increase stack space.
Antoni
Reply


Messages In This Thread
"Out of string space" - by Jark - 05-21-2003, 02:23 AM
re: modules / libs - by Meg - 05-21-2003, 04:03 AM
"Out of string space" - by Antoni Gual - 05-22-2003, 12:16 AM
Got it ! - by Jark - 05-22-2003, 04:24 AM
"Out of string space" - by relsoft - 05-22-2003, 08:35 AM
"Out of string space" - by Antoni Gual - 05-22-2003, 05:52 PM
More information - by Jark - 05-22-2003, 06:21 PM
From what I can tell from QB's... - by Glenn - 05-22-2003, 10:31 PM
if you follow my above post, and try... - by Meg - 05-22-2003, 10:37 PM
"Out of string space" - by Antoni Gual - 05-23-2003, 12:29 AM
"Out of string space" - by Jark - 05-23-2003, 08:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)