E enonod Well-Known Member Licensed User Longtime User Jan 31, 2013 #1 What is a sensible stack limit for recursion please?
Erel B4X founder Staff member Licensed User Longtime User Jan 31, 2013 #2 In almost all cases a stack overflow error is a result of a code error. Upvote 0
B Bas Hamstra Member Licensed User Longtime User Jan 31, 2013 #3 Why limit? I use a game-tree searching recursive algo and have had no problems recursively searching trees with millions of nodes. What would you like to do? IMO recursion works like normal in B4A. Bas Upvote 0
Why limit? I use a game-tree searching recursive algo and have had no problems recursively searching trees with millions of nodes. What would you like to do? IMO recursion works like normal in B4A. Bas
E enonod Well-Known Member Licensed User Longtime User Jan 31, 2013 #4 Thank you both. I don't actually have a problem or error, I just wanted to be aware of it if there was a limit before going any deeper. Upvote 0
Thank you both. I don't actually have a problem or error, I just wanted to be aware of it if there was a limit before going any deeper.
derez Expert Licensed User Longtime User Jan 31, 2013 #5 Recursion is limited by memory, and the number of recursions depends on the memory used for each. Upvote 0