Author Topic: Frequent freezing  (Read 5173 times)

sim642

  • Guest
Frequent freezing
« on: June 08, 2010, 04:20:26 pm »
Hi!

I'm running CB 10.05 on Windows Vista. When I installed it everything worked great.
But now CB freezes frequently for 3-10 seconds. It happens every 30-120 seconds, but only when I interact with the CB, eg. modify code or use keyboard shortcut to compile. Few times it has also crashed after freezing but usually it recovers.

Can anyone help me to somehow fix this problem, because its nearly impossible to program like this.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Frequent freezing
« Reply #1 on: June 08, 2010, 04:49:22 pm »
You can check whether "Settings -> Editor -> Code-Completion and symbols browser -> Code completion -> Update parser when typing ..." is set or not.
If it is set, uncheck it and see whether it is better or not.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Frequent freezing
« Reply #2 on: June 08, 2010, 05:08:59 pm »
Hi!

I'm running CB 10.05 on Windows Vista. When I installed it everything worked great.
But now CB freezes frequently for 3-10 seconds. It happens every 30-120 seconds, but only when I interact with the CB, eg. modify code or use keyboard shortcut to compile. Few times it has also crashed after freezing but usually it recovers.

Can anyone help me to somehow fix this problem, because its nearly impossible to program like this.
Can you give more details. The steps to produce this bug?
If possible, can you upload your sample project?
Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

12oclocker

  • Guest
Re: Frequent freezing
« Reply #3 on: May 26, 2012, 03:41:02 pm »
I know this is an old post, but I am having the exact same problem, with the newest version of codeblocks.
In large projects with 1000 lines of code or more and a dozen or more source files, codeblocks user interface will Freeze every 30 seconds or so, and the freeze will last for as long as 8 seconds, it makes the UI almost un-usable, I am running on an AMD quad core with 4 gigs of memory, default codeblocks install, no customizations of special configurations...
I notice it does not do this on small projects at all. (2 to 3 source code files, about a hundred lines of code)
I disabled "Settings -> Editor -> Code-Completion and symbols browser -> Code completion -> Update parser when typing ..."
and it still freezes....
I am still try to find the cause, seems like it's parsing something intensive and it's not doing it in a separate thread, which is locking up the UI.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Frequent freezing
« Reply #4 on: May 26, 2012, 03:58:13 pm »
What does it mean "newest version of codeblocks"?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]