News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Removing cb_console_runner?

Started by micael_carvalho, May 10, 2010, 02:04:47 PM

Previous topic - Next topic

micael_carvalho

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.

MortenMacFly

Quote from: micael_carvalho on May 10, 2010, 02:04:47 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

micael_carvalho

Quote from: MortenMacFly on May 10, 2010, 02:15:03 PM
Quote from: micael_carvalho on May 10, 2010, 02:04:47 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.

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.

micael_carvalho

Hello?

Note: I am using Windows XP SP3

MortenMacFly

Quote from: micael_carvalho on May 11, 2010, 05:52:37 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

micael_carvalho

Quote from: MortenMacFly on May 14, 2010, 02:33:59 PM
Quote from: micael_carvalho on May 11, 2010, 05:52:37 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...

(...)
(...)

MortenMacFly

Quote from: micael_carvalho on May 27, 2010, 08:39:36 AM
That is what I did...
So... what line in the cb_console_runner code causes the freeze for you?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]