I don't know your exact installation but a problem of mine (which droves me crazy, till i figured out) was:

Beside my application a have a astyle executable in my folders. Because of any reason sometimes the debug modus is switching its target from my application to the mentioned astyle executable and then I get a similar error message. My bee it's a similar problem?