I've been trying to avoid the Debug/Close dialog when I get a stack overflow exception in my application (I need my application to shut down without user interference). Using SetErrorMode(SEM_NOGPFAULTERRORBOX) works for several other kinds of exceptions (out of memory, for example), but not for stack overflow.
I'm looking for a solution that works only on my application, as I cannot disable this for all the other applications.
Thanks.