Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If the call stack gets corrupted, would that crash only the current thread, or my entire application?

I'm a noob when it comes to threading in C#, and I'm not sure if each thread is supposed to have its own call stack? Basically, if I get a "Run-Time Check Failure #0 - The value of ESP was not properly " , would that crash only the thread in which it occured, or the entire program?

like image 576
Emil D Avatar asked Feb 27 '23 11:02

Emil D


1 Answers

Each thread has its own stack, so stack corruption will only directly affect a single thread. But the default thread exception handler will take down the application.

like image 111
John Knoeller Avatar answered Mar 02 '23 14:03

John Knoeller