I am running a web crawler and parsing the page content with HtmlAgilityPack and randomly get a StackOverflowException in that C# library, but when I try to see the Call Stack list up to my code, I get:
"The maximum number of stack frames supported by Visual Studio has been exceeded."
Side notes: I'm already using sjdirect's HAP fix.
Here is a snapshot (it repeats like this all the way).
Is there a way to enlarge the number of stack frames Visual Studio can track, to at least as much as the application can allocate before filling its stack? Or can the reverse be done, namely reduce the stack size of the debugged application?