Guest hasnain_razwi Posted October 30, 2003 Posted October 30, 2003 hi all. does anyone know how i can handle a stack overflow error in a recursive function. im using vb.net to make a function that searches all the squares adjacent to a square in a grid. Quote
jamesanthony Posted October 30, 2003 Posted October 30, 2003 Stack Overflow Cant see your code but normally this is because you have used up all available memory. Try releasing variables between the recursive calls JR Quote
Moderators Robby Posted October 30, 2003 Moderators Posted October 30, 2003 It sounds like an endless loop, maybe. Quote Visit...Bassic Software
Administrators PlausiblyDamp Posted October 30, 2003 Administrators Posted October 30, 2003 Any chance you could post the code? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Guest hasnain_razwi Posted November 1, 2003 Posted November 1, 2003 Its ok. It was an endless loop. code was so long, I couldn't figure it out first. Now its working fine. But still is there any way to release the resources held by the system stack during run time. I used a call to the Clear() method but that doesn't seem to work. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.