Howdy_McGee
Howdy_McGee

Reputation: 10635

What to do when Process won't End

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.

Upvotes: 0

Views: 4051

Answers (2)

KoKo
KoKo

Reputation: 302

Install this program called Process Hacker, it can terminate any process, I have used it for years, and haven't met any process that this program can not terminate. It has a regular "terminate" function that usually works, and if that doesn't work, it has this "terminator" function that let's you try more than 10 methods of terminating a stubborn process.

Upvotes: 0

Igor Perić
Igor Perić

Reputation: 171

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.

Upvotes: 2

Related Questions