stack over flow error

  • Thread starter Thread starter hasnain_razwi
  • Start date Start date
H

hasnain_razwi

Guest
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.
 
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
 
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.
 
Back
Top