exception - .NET Core - how to catch a StackOverflowException -
the perfect stackoverflow question has come....
how catch stackoverflow exception!
it seems in .net core stackoverflowexception isn't available:
and if run code:
using system; namespace playground.core.console { public class program { public static void main(string[] args) { try { dosomething(); } catch(exception e) { system.console.writeline("bugger"); } } private static void dosomething() { dosomething(); } } } i this:
you can see exception handler didn't run. how go catching exception in .net core?
edit september 15th, 2017: in .net core 2.0 there stackoverflowexception class, still doesn't catch stackoverflow exception.


Comments
Post a Comment