How do I track down the cause of a StackOverflowException in .NET?

前端 未结 4 1203
南旧
南旧 2021-02-01 03:18

I get a StackOverflowException when I run the following code:

private void MyButton_Click(object sender, EventArgs e) {
  MyButton_Click_Aux();
}

p         


        
4条回答
  •  悲哀的现实
    2021-02-01 03:46

    When that exception happens, why not check what was recorded in call stack panel? The call stack itself can tell a lot.

    Besides, low level debugging using SOS.dll and WinDbg can also tell you a lot.

提交回复
热议问题