I get a StackOverflowError when I run my program, so I looked it up and found "Thrown when a stack overflow occurs because an application recurses too deeply." And yes, I do a LOT of recursion.... So I was wondering if this is a common problem and can be delt with easily, or do I just have to come up with a better algorithm?
09-20-2004, 12:53 AM
It might not necessarily be that your algorithm is messed up, it might just be that you accidentally left out a condition or such to limit the amount/depth of recursion. Check your code to make sure you aren't lacking in that area, as it is unlikely that any reasonable task cannot be accomplished with finite memory through recursion.
Hope that helps!
Happy coding! :)
I found the problem, it was exactly as you said... it never stopped.