3 ms·
> There are very limited things you are supposed to do in an APC, but these are poorly documented and need one to think carefully about what is happening when a
by Fulgen 2y ago
> There are very limited things you are supposed to do in an APC, but these are poorly documented and need one to think carefully about what is happening when a thread is executing in a stack frame and you interrupt it with this horrorshow.
One must not throw a C++ exception across stack frames that don't participate in C++ stack unwinding, whether it's a Win32 APC, another Win32 callback, a POSIX signal or `qsort` (for the people that believe qsort still has a place in this decade). How the Win32 API is designed is absolutely irrelevant for the bug in this code.
- muststopmyths 2y agoI was talking about APCs and win32 api in general not this bug.