title: Why won't Code::Blocks Build->Abort kill my running C++ program?
body: <p>I am using Code::Blocks 12.11 on Windows 7.</p>
  
  <p>I am writing small programs for learning and they don't appear to contain any infinite loops  but regardless, Build->Abort does not work in those situations in which I find that I have to use it for some reason after Build->Run.</p>
  
  <p>In this most recent case, the following is displayed in the "Build log" tab of the "Logs &amp; others" window at the bottom of the screen.</p>
  
  <blockquote>
    <p>Checking for existence: C:\CodeBlocks\Test_Cpp11\bin\Debug\Test_Cpp11.exe Executing:
    "C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe"
    "C:\CodeBlocks\Test_Cpp11\bin\Debug\Test_Cpp11.exe"  (in
    C:\CodeBlocks\Test_Cpp11.)</p>
  </blockquote>
  
  <p>I exited Code::Blocks, came back in, reopened the project, and immediately ran the program and it ran fine.</p>
  
  <p>EDIT: I found out the problem. If the "console window" - that came up to display cout statements - is still open, then you will have a greyed out Build->Run and Build->Build items until you close that window. My assumption that I needed to do Build->Abort at that point was incorrect. As pointed out in the answer below, that would not abort a running project process anyway, only a build/compile process that may be running.</p>