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

前端 未结 4 1195
南旧
南旧 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:26

    The bug is in your code. Presumably, MyButton_Click_Aux() causes some method to be re-entered. However, you've inexplicably omitted that code from your question and so no one can comment on it.

提交回复
热议问题