C++ Builder debugger creates too many threads
What I got:
- Server console 32bit application written in ANSI C (free open-source multiplayer game);
- Application runs in Embarcadero C++ Builder 10.3 in 'Debug mode';
- Server OS: Windows Server 2012 R2 64bit.
Sometimes there appears CPU load problem. Video demonstration of this problem: https://youtu.be/eyASiAUG2vI (description of the video: I've paused IDE and went step-by-step with F7... then it become 'Process is not acessible' so I paused it again and went with F7 one more time).
It looks like a problem with the debugger. It creates too many threads for whatever reason and that clogs the CPU... Windows not able to create thread because it's in Windows kernel method "base threadinitthunk". "thread exit, thread start, thread exit..." and so on so the debugger creates so many threads Windows cannot deal with it. There is no multithread in the application except the debugger.
I've checked C++ Builder project options (screenshots: 1,2,3) and can't find there options for thread loader. I wonder, is there a setting for C++ Builder to limit number of threads? Or some other workarounds?
Thanks!
from Recent Questions - Stack Overflow https://ift.tt/3mwWH4D
https://ift.tt/eA8V8J
Comments
Post a Comment