I have a simple WCF-Service that I run in the console when testing it. Sometime I want to have the console windows on top of the other windows so I click it. This activates the "Mark and Paste" command and then freezes the whole application (service becomes unresponsive) until I press enter.
I find that rather annoying.
I don't want to disable the "Mark and Paste", because sometimes I copy text from the console.
Is there any way to detect that the application is frozen?
If I knew when this was the case, I could maybe change the windows titel to display a warning.
EDIT: This is not a duplicate, because I want to know how to handle the freeze and not why it feels frozen. I know now that only the writing to the output is frozen, which causes my application to feel like it is frozen.