Home | Articles|Namespace|Interview Questions|Tools|Jobs|Projects|Community
Asp.net Tutorials

»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books

»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects

»Competition
Community
Winners
Prizes
Write For Us
Members

»Other Resources
Links
Dotnet Resources

creating a System.StackOverflowException in code

This code shows you how to create a System.StackOverflowException exception and catching it

using System;
public class StackOverflowExample {
public static void recursive() { recursive(); }
public static void Main() {
try {
recursive();
}
catch(StackOverflowException e) {
Console.WriteLine("Stack Error caught: {0}", e);
}
}
}

Have a Question and dont know the answer post it below and get answers in minutes

Due to spam this feature is disabled
To get answers fast , make sure you enter a detailed subject for example: "DataGrid issues need answer" not "DataGrid"

Subject:

Catjegory Name:

Message:



© 2008 dotnetwatch.com -- Privacy policy