runtime: .net core 2.1 AppDomain.CurrentDomain.UnhandledException
From @zhaojie on November 26, 2018 6:20
.net core 2.1 To avoid program crash, I use AppDomain.CurrentDomain.UnhandledException to catch the unhandledexception,but the program still crashes and exits
Where to set this property of UnhandledExceptionEventArgs.IsTerminating ?
.net, can set this legacyUnhandledExceptionPolicy
<runtime> <legacyUnhandledExceptionPolicy enabled="true" /> </runtime>
but in .net core, hot to do?
Copied from original issue: dotnet/corefx#33689
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (12 by maintainers)
Ok, then it is a problem with debugger / debugger support code. It may be the same as #2317.
Please see https://docs.microsoft.com/en-us/dotnet/standard/assembly/unloadability for all the details.