I am running a C# program on Windows in visual studio 2019.
This is a program involving a few threads, and it must be active for an extended period of time, pretty much looping endlessly until I intput a command to stop.
For some reason, after a few minutes, the program often stops with the output:
The program '[17300] dotnet.exe' has exited with code -1073740791
(0xc0000409).
I don't know what this means. The only info I can find on the code doesn't seem to relate to visual studio, but to windows 10 itself.
It seems to be an issue with the threads themselves, as breakpoints and print statements after where the threads are supposed to join aren't being hit.
Furthermore, where the code is failing is within a try block, but the corresponding catch isn't being run.
What does the code mean and how so I solve it?
User contributions licensed under CC BY-SA 3.0