Hi
I m having a problem with satckloverflow exception it comes from a method and does not get caught i m using c#.net 3.5 please help...
Hi
I m having a problem with satckloverflow exception it comes from a method and does not get caught i m using c#.net 3.5 please help...
Step through the code and figure out why the method is being called over and over. It's probably a logic error that is keeping the recursion from stopping.
As I am unfortunately not clairvoyant, it is impossible to answer your question unless you post some code. However, a very common cause of this for beginners is using the property instead of the backing field in a getter or setter, i.e.,
string _someProperty;
string SomeProperty
{
get { return SomeProperty; } //oops
set { SomeProperty = value; } //oops
}
StackOverflow is a pain to debug. OutOfMemory is another. You may want to get a crash dump using the Debug Diagnostic Tool and use WinDbg to see the stack that caused it.