To everybody in this thread you need to learn how to see if your exe is still running.
In Windows 7; CNTR+SHIFT+ESC brings up the task manger.
First look for your exe under the Applications tab.
If that is NOT in the list look for the CB Console exe will add the names of it later.
After, finding the Application, highlight it and click on "Switch To"
Do what is needed to close the Application that was switch to being current app.
If the problem, was fixed by the above steps it is NOT a Code::Blocks problem in my opinion.
If the problem still exists; it might be a CB Problem if your exe was NOT listed but, the CB console exe was listed.
In Windows 7; CNTR+SHIFT+ESC brings up the task manger.
First look for your exe under the Processes tab.
If that is NOT in the list look for the CB Console exe will add the names of it later.
After, finding the Processes, highlight it and click on "End Process"
Tim S.