Author Topic: C::B freezes completely with macros in tools menu (?)  (Read 5477 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
C::B freezes completely with macros in tools menu (?)
« on: January 16, 2006, 02:20:29 pm »
What I did: I've added 2 tools to the "Tools" menu: SciTE and Windows Notepad. I've setup the tools to apply the ${ACTIVE_EDITOR_FILENAME} "macro" as parameter and to be launched in the ${PROJECT_DIR}. Whenever I have a file opened and try to run one of these tools C::B freezes completely and uses 100% CPU and I have to kill C::B with the task-manager. I did this before (last year...) and it was working properly for ages. I don't know if and when this got broken or whether it is a problem of my fresh intallation. Coudl someone verify, please?
Morten.
Edit: WinXP, C::B revision 1767 (and a few before), wxWidgets 2.6.2 (unicode).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5503
Re: C::B freezes completely with macros in tools menu (?)
« Reply #1 on: January 16, 2006, 02:27:21 pm »
idea : write a little program that dumps it's command line arguments, to see what comes in.
Maybe quotes issues, or unicode issues ??

[edit] : and use that program as the tool

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: C::B freezes completely with macros in tools menu (?)
« Reply #2 on: January 16, 2006, 02:35:40 pm »
It seems to happen with any kind of variable in any of the tool config dialog's field, not just the two you tried.
So far, no idea why, though.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C::B freezes completely with macros in tools menu (?)
« Reply #3 on: January 16, 2006, 02:36:05 pm »
Good idea! But: I tried, but it's not the tool that is the reason. The tool doesn't even gets launched (I verified using sysinternals filemon)...
So I think it must be before the call inside C::B. Could you try to add Notepad yourself? Does it work for you? Thanks, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C::B freezes completely with macros in tools menu (?)
« Reply #4 on: January 16, 2006, 02:36:54 pm »
So far, no idea why, though.
Ooops, we were both writing at the same time. So ignore my message before... Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: C::B freezes completely with macros in tools menu (?)
« Reply #5 on: January 16, 2006, 02:38:48 pm »
As soon as this darn raytracer stops hijacking the CPU, I'll try to find out some more, but currently Code::Blocks takes 3 minutes to start up...
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: C::B freezes completely with macros in tools menu (?)
« Reply #6 on: January 16, 2006, 02:56:08 pm »
Fixed now.
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C::B freezes completely with macros in tools menu (?)
« Reply #7 on: January 16, 2006, 05:45:02 pm »
Fixed now.
...I can confirm this. Thanks a lot - this was again very faaaast (as usual ;-)). Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ