Unhandled Exception Handler in .NET 1.1

后端 未结 5 1971
闹比i
闹比i 2020-12-11 00:15

I\'m maintaining a .NET 1.1 application and one of the things I\'ve been tasked with is making sure the user doesn\'t see any unfriendly error notifications.

I\'ve a

5条回答
  •  渐次进展
    2020-12-11 00:22

    Is this a console application or a Windows Forms application? If it's a .NET 1.1 console application this is, sadly, by design -- it's confirmed by an MSFT dev in the second blog post you referenced:

    BTW, on my 1.1 machine the example from MSDN does have the expected output; it's just that the second line doesn't show up until after you've attached a debugger (or not). In v2 we've flipped things around so that the UnhandledException event fires before the debugger attaches, which seems to be what most people expect.

    It sounds like .NET 2.0 does this better (thank goodness), but honestly, I never had time to go back and check.

提交回复
热议问题