16
7
My Windows command prompt will randomly freeze up when running an Ant script. The script has no spots in it where it waits for user input.
Also, when it freezes I can unfreeze it by focusing the command window and pressing enter. After pressing enter, the process continues.
This happens completely randomly. And it seems like it will eventually continue on its on, but it will sit there for several minutes before continuing. But if I press enter, it does it instantly.
What is going on?
(Would this be better for Stack Overflow? I do not believe this has anything to do with my code, because there is no spot asking for user input. So i am assuming it has something to do with Windows.)
1I believe it is a windows 10 thing, and has to do with the new "selection / copy" mode that it goes into. – Shaun Rowan – 2015-11-24T00:30:08.423
2http://stackoverflow.com/questions/33883530/why-is-my-command-prompt-freezing-on-windows-10/33883532#33883532 – Shaun Rowan – 2015-11-24T00:47:25.727
This has happened to me, too (in fact, I only found this question because I was typing one), but it has happened regardless of whether I have clicked in the window or not. To give you an example, I had a server that I started via the command line and then left running on a machine that didn't have any users. When accessing it, instructions would hang because the command prompt was "stuck" waiting for a keypress (exactly like your symptom). Seems few have had this problem, so there is no solution yet. – K. Carpenter – 2014-03-14T01:25:59.503