Author Topic: Removing cb_console_runner?  (Read 5318 times)

Offline micael_carvalho

  • Single posting newcomer
  • *
  • Posts: 4
Removing cb_console_runner?
« 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9613
Re: Removing cb_console_runner?
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline micael_carvalho

  • Single posting newcomer
  • *
  • Posts: 4
Re: Removing cb_console_runner?
« Reply #2 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.

Offline micael_carvalho

  • Single posting newcomer
  • *
  • Posts: 4
Re: Removing cb_console_runner?
« Reply #3 on: May 14, 2010, 02:26:10 pm »
Hello?

Note: I am using Windows XP SP3

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9613
Re: Removing cb_console_runner?
« Reply #4 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline micael_carvalho

  • Single posting newcomer
  • *
  • Posts: 4
Re: Removing cb_console_runner?
« Reply #5 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...

(...)
(...)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9613
Re: Removing cb_console_runner?
« Reply #6 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?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ