Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
An unhandled exception of type 'System.StackOverflowException' occurred in Project
Posted

1 solution

This is one of the exceptions which is easy to debug and fix. Practically, it hardly can be anything but "infinite" recursion or mutual recursion. Please see:
http://en.wikipedia.org/wiki/Recursion[^],
http://en.wikipedia.org/wiki/Recursion_%28computer_science%29[^],
http://en.wikipedia.org/wiki/Mutual_recursion[^].

The key technique to discovering the problem: Debugger window "Call stack". I guess you can understand why. Use it to see where the call comes from. You need to detect the place in the code which is executing again and again. Corresponding debugging techniques are so practically important that you certainly need to master them, because without such skills it's impossible to do real programming.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900