I have exactly the same problem. I can't debug the program at all. The whole thing gets stuck. There is a CrossThread error in the Windows event log! I debugged your program using x32dbg. And among other things, you have an error in SetThreadName , Unknown name. this error causes the program to...