TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Tommy Sin
NA
19
104.4k
I am wondering why it catches StackOverflowException
Mar 14 2011 4:04 PM
I wonder why it catches StackOverflowException before it terminates. I believe there is no local variable declared that is supposed to be stored on stack in "static void Recursive()" function. Could anyone please explain how StackOveflowException occurs in details in this case?
Thanks
class program
{
static void Main(string[] args)
{
Recursive();
}
static void Recursive()
{
Recursive();
}
}
Reply
Answers (
1
)
Why doesnt StackOverflowException get caught here?
Can't refresh datagridview with bindingsource