How to troubleshoot .NET 2.0 Error Reporting messages in the event log?

后端 未结 8 2113
傲寒
傲寒 2020-12-23 23:35

I work on an open source product called EVEMon written in C# targeting the .NET 2.0 platform, I have one user who is suffering from a strange .NET crash that we have been un

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-24 00:13

    What OS (Windows XP, Windows Vista, etc.) does the user use?

    If Windows Vista try to disable "Problem Reports and Solutions feature" (Control Panel-->Problem Reports and Solutions-->Change Settings-->Advanced Settings-->Turn off for my programs, problem reporting)

    Or try to set

      Application.SetUnhandledExceptionMode( UnhandledExceptionMode.CatchException );
    

    This will always route exceptions to the ThreadException handler.

提交回复
热议问题