tags:

views:

302

answers:

3

I am using Delphi 7 but I have trialed the Delphi 2005 - 2010 versions.

In all these new versions my CPU utilization is 50% (one core is 100%, the other is "relaxed") when Delphi IDE is visible on screen. It doesn't happen when the IDE is minimized. My computer is overheating because of this.

Any hints why this happens? It looks like if I want to upgrade to Delphi 2010, I need to upgrade my cooling system first. And I am a bit lazy about it, especially that I want to discharge my computer and buy a new one (in the next 6 months) - probably I will have to buy a Win 7 license too.


Edit: My CPU is AMD Dual Core 4600+. I have 4GB RAM. My CPU temperature is acceptable (not in the critical area yet). However, the overheated CPU makes the temperature of the HDDs to raise critically!!


Edit: Coming to a possible solution

I just deleted all HKCU/CodeGear key and let started Delphi as "new". Guess what? The CPU utilization is 0%. I will investigate more.



Edit:

SOLVED

It was a Delphi button. I like to switch between the new full screen and old Delphi-7-like IDE. There is a button called "dock edit window" that does this. Every time I installed a new version of Delphi, I configured the look of the IDE and put that button handy in the toolbar. After I remove the button, everything works fine.

Conclusion, don't drop this button on your IDE toolbar.

+1  A: 

It's the code insight or other IDE feature, compiling stuff in the background. It's pretty normal for D2005 to go into "zombie" mode for half a minute or so and swamp one of my cores. It seems to be much better in D2010 though. Try turning off the IDE gizmos (code completion, code parameters, tootip, error insight, etc..) and see if that calms things down. If it does, then turn them back on one at a time and see what you find.

Chris Thornton
I think that its important that we find out his processor before we come up with a conclusion. If he has a Pentium 4 1.4GHZ then that could explain it.
Jonathan Czitkovics
...or a Celeron clocked at 600 MHz.
Andreas Rejbrand
@Andreas Rejbrand He said `cores` so that means that he is either mixing up a logical core like in a Pentium 4 with hyper-threading or he actually has a dual core. So it cant be a celeron.
Jonathan Czitkovics
@Jonathan: I didn't see that... Sorry!
Andreas Rejbrand
A: 

I guess first step would be to try to identify which part of delphi is taking 100%. Is it the main thread, or a secondary thread? If you manage to identify which thread is hogging all the CPU power, I guess you could debug the IDE (Attach to process from a 2nd instance of delphi, can be D7 so you won't have 2 apps flooding your CPU), and then step into the "offending" thread. With some luck, the code executing could have some debug information indicating what is being done.

If you have any 3rd party/Home components installed, try removing them.

Like already mentionned, try disabling code insight.

Try disabling any anti-virus running. (Maybe some kind of Live-lock)

That's all I can think of right now...

Ken Bourassa
+1  A: 

SOLVED

It was a Delphi button. I like to switch between the new full screen and old Delphi-7-like IDE. There is a button called "dock edit window" that does this. Every time I installed a new version of Delphi, I configured the look of the IDE and put that button handy in the toolbar. After I remove the button, everything works fine.

Conclusion, don't drop this button on your IDE toolbar.

Altar