How to make C# application crash

后端 未结 12 2073
渐次进展
渐次进展 2020-12-31 13:00

I want to test if my application crash dump can be debugged. But firstly, I need to generate a crash dump of my application. I\'m using C# to code my app, and have tried wit

12条回答
  •  有刺的猬
    2020-12-31 13:55

    StackOverflowException is a badass:

    void PerformOverflow()
    {
      PerformOverflow();
    }
    

    Usage:

    PerformOverflow();
    

提交回复
热议问题