I’m an amateur programmer and often run into this problem. I use visual studio and sometimes if I don’t clear my input buffer input gets thrown into the next awaiting cin and throws my program into an endless loop.
The problem is – I can’t close the command prompt. I can’t run my program again until the command prompt is close (I can’t open another command prompt). I’ve tried to ctrl+alt+del and end the process there – it does nothing. I’m unsure what else to do except restart my computer… When I do this it closes automatically (and quickly), but then I can’t cancel my restart I just kind of have to go through it.
What else can I do to end a process that will not end?
Edit Not sure why this was migrated here, i feel this is a windows problem looking for a windows solution. I thought superusers was for that.
Try unticking “Enable the Visual Studio hosting process” under project settings.
I had the same issue when working with serial port. I close my app and it won’t overwrite .exe when I try to start debugging again. This helped me.