Console selection stops application
When in selection mode, any thread in the Windows console will block when writing stdout
or stderr
. Doesn't matter which thread.
You could separate out the console writes from the server operations and make sure the server threads never write to the console, but then you introduce additional thread management and message queueing concerns.
You could do what most people do: Use log files. If you don't want to build file writing into the application, just pipe stdout
and stderr
to a file and use some Windows equivalent of tail
to monitor the file (or a text editor like Sublime which automatically monitors open files).
server.exe > server.log 2>&1
To clarify: 2>&1
indicates that stderr
(file handle 2) should be "merged into" stdout
(file handle 1).