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:

enter image description here

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:

enter image description here

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

Popular posts from this blog

php - isset function not working properly -

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -