When I run my C# program it throws an Stack Overflow exception in one of the methods on a DLL that I have a reference to it in my solution. but no debugging info is available to me because it says it is an stack overflow exception and no info is available. what are the next debugging steps that I should follow to understand what is going on and why ?
thanks
Edit: here is the code that stops at:
static public Collection SortCollection(Collection oCollection, string sPropertyName, string sKeyPropertyName)
{
r开发者_Go百科eturn SortCollection(oCollection, sPropertyName, sKeyPropertyName);
}
In 99% cases root cause is infinite recursion.
Looking at your code, the method SortCollection just keeps calling itself over and over. That will create an infinite loop.
You need to do something inside the function to make it eventually stop calling itself, like Andrey says in his comment.
You could try downloading .NET Reflector Pro. .NET Reflector (the base product) allows you to "decompile" .NET assemblies, giving you the ability to view the source code.
.NET Reflector Pro takes it one step further and allows you to debug through the source code of any arbitrary .NET assembly.
Pro is not free, but there is a short trial period.
http://www.red-gate.com/products/reflector/
精彩评论