Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: micael_carvalho on May 10, 2010, 02:04:47 pm

Title: Removing cb_console_runner?
Post by: micael_carvalho on May 10, 2010, 02:04:47 pm
Is there any way to not run my code by cb_console_runner?

It is taking a huge time to run anything... cb console opens and i have to wait for 20 seconds or more just to see a single "printf".

If I can't remove it, how can i fix this "lag"? I know that i still have the choice to replace cb_console_runner.exe for some application of mine that do its job...

Well, any help will be welcome.
Title: Re: Removing cb_console_runner?
Post by: MortenMacFly on May 10, 2010, 02:15:03 pm
Well, any help will be welcome.
What about compiling the cb_console_runner yourself, debug through it and tell what's actually causing the delay? Alternatively you can modify the app yourself so that it works. It's a very small application in  the end (100 LOC's or so...). Look in "src\tools\ConsoleRunner".

Notice that you are the first and only person reporting this issue. So most likely it's not a fault of the console runner.
Title: Re: Removing cb_console_runner?
Post by: micael_carvalho on May 11, 2010, 05:52:37 am
Well, any help will be welcome.
What about compiling the cb_console_runner yourself, debug through it and tell what's actually causing the delay? Alternatively you can modify the app yourself so that it works. It's a very small application in  the end (100 LOC's or so...). Look in "src\tools\ConsoleRunner".

Notice that you are the first and only person reporting this issue. So most likely it's not a fault of the console runner.

I compiled it again, the problem remains...

Small programs usualy run fast, but some times they also get late to run. The code i am running have 419 lines (including \n's), i dont think it would take so much time to compile and run :/

Step by Step:
- I press F9.
Messages of compiling are showed in the Build log.
cb_console_runner opens (clean).
If i press any key it will not work now.
Some time waiting...
Software start running (first printf works) and then everything goes normal.

Note: If i run the program on its folder it runs with no delay.
Title: Re: Removing cb_console_runner?
Post by: micael_carvalho on May 14, 2010, 02:26:10 pm
Hello?

Note: I am using Windows XP SP3
Title: Re: Removing cb_console_runner?
Post by: MortenMacFly on May 14, 2010, 02:33:59 pm
I compiled it again, the problem remains...
Look, please read my post more carefully: You shall not compile your program, but cb_console_runner yourself. Adopting it to your needs or (even better:) find out what causes the hang for you can be done very easily this way.
Again: The sources for cb_console_runner are in SVN. One simple CPP file, that's it.
Title: Re: Removing cb_console_runner?
Post by: micael_carvalho on May 27, 2010, 08:39:36 am
I compiled it again, the problem remains...
Look, please read my post more carefully: You shall not compile your program, but cb_console_runner yourself. Adopting it to your needs or (even better:) find out what causes the hang for you can be done very easily this way.
Again: The sources for cb_console_runner are in SVN. One simple CPP file, that's it.

That is what I did...

(...)
(...)
Title: Re: Removing cb_console_runner?
Post by: MortenMacFly on May 27, 2010, 09:05:50 am
That is what I did...
So... what line in the cb_console_runner code causes the freeze for you?