If the call stack is damaged, will only the current thread or my entire application crash?

I'm a newbie when it comes to streaming in C # and I'm not sure if each thread should have its own call stack? Basically, if I get "Runtime Check Error # 0" - the ESP value was wrong, "can this only result in a failure of the thread in which it occurred, or the whole program?

+4
source share
2 answers

Each thread has its own stack, so stack damage affects only one thread. But the default thread exception handler will delete the application.

+8
source

Each thread has its own call stack, so corruption will affect only one thread.

But, as John pointed out, this may be enough to stop the program.

0
source

Source: https://habr.com/ru/post/1302702/


All Articles