StackOverflowException Exception : Buildin Exceptions « Development Class « C# / C Sharp
- C# / C Sharp
- Development Class
- Buildin Exceptions
StackOverflowException Exception
using System;
class MainClass
{
public static void Main()
{
try
{
Recursive();
}
catch(StackOverflowException)
{
Console.WriteLine("The CLR is out of stack space.");
}
}
public static void Recursive()
{
Recursive();
}
}
Related examples in the same category