User forums > Using Code::Blocks

Compile / Run / STOP!

(1/1)

Vampyre_Dark:
I noticed today that if I compile and run a project, and then switch to another project, I cannot compile or run it until I exit the application I ran. Is this intended behaviour?

thomas:
I was going to say "Hell yes! Absolutely!", but looking at it closer, it is actually not necessary (unless Yiannis has another reason to do it).

The reason why I'd have said "yes" is that wxExecute called synchronously spins around wxYield, which can be quite nasty when done recursively.
But... the toolrunner uses system() to run your app synchronously, which is fine, and the toolrunner itself is called from the compiler plugin asynchronously, so this wxYield story of mine does not hold ;)

EDIT:
And here is the probable reason: The exit code of your application. If your application returned an "error" exit code, the IDE would have no way to show that to the user unless it keeps a list of process IDs mapping to names, which would be possible, but complicated. The way it is now, it is really easy.

mandrav:

--- Quote from: Vampyre_Dark on October 19, 2005, 09:57:28 pm ---I noticed today that if I compile and run a project, and then switch to another project, I cannot compile or run it until I exit the application I ran. Is this intended behaviour?

--- End quote ---

In short, yes it is intentional. Thomas is right.

Vampyre_Dark:

--- Quote from: mandrav on October 19, 2005, 10:40:52 pm ---
--- Quote from: Vampyre_Dark on October 19, 2005, 09:57:28 pm ---I noticed today that if I compile and run a project, and then switch to another project, I cannot compile or run it until I exit the application I ran. Is this intended behaviour?
--- End quote ---
In short, yes it is intentional. Thomas is right.
--- End quote ---
Not a problem. Just wondering.

Navigation

[0] Message Index

Go to full version