Skip to content

Breaking on stack overflow #2159

Answered by tullo-x86
markolbert asked this question in General
Discussion options

You must be logged in to vote

Well first off, you can only ever catch a StackOverflowException if you're the one who threw it.

Secondly, wow, I've never seen .NET terminate with an access violation. That's your OS dropping the hammer on .NET for touching memory that it doesn't own. You have no chance to recover from this, but you might be able to use a profiler (in instrumentation mode) to figure out where your execution was during the lead-up to the access violation.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by markolbert
Comment options

You must be logged in to vote
1 reply
@tullo-x86
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants