Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jpk70 on November 21, 2013, 11:48:38 am

Title: Console window closes immediately
Post by: jpk70 on November 21, 2013, 11:48:38 am
When I run a Windows console project the console window closes immediately and does not wait for keypress. This is with version 12.11. With version 10.05 (which I had before) it did wait. My Project settings for console is "Pause when execution ends" ticket.

I did install the latest MinGW (outside CB), but I dont think its the problem because I put back the original C::B MinGW folder and had the same problem.
Title: Solved.. no problems
Post by: jpk70 on November 21, 2013, 12:00:30 pm
hmm, I just pressed the button "Debug/continue" which does this. But pressing "Run" will keep console open. So it is there. So I will try to delete this post now ... :). Its just that I did not notice there are two ways to run it.
Title: Re: Console window closes immediately
Post by: BlueHazzard on November 21, 2013, 12:11:57 pm
there are differences between run and debug...