CPU overheating due to Delphi IDE

I use Delphi 7, but I tested versions of Delphi 2005 - 2010.

In all these new versions, my processor utilization is 50% (one core is 100%, the other is "relaxed") when the Delphi environment is visible on the screen. This does not happen when the IDE is minimized. Because of this, my computer is overheating.

Any clues why this is happening? It looks like if I want to upgrade to Delphi 2010, I need to upgrade the cooling system first. And I'm a little lazy about it, especially that I want to unload my computer and buy a new one (in the next 6 months) - I may also have to buy a Win 7 license.


Update
Delphi XE and XE7 also suffer from this error.


The solution is below!

+4
source share
4 answers

Decision

The problem of 100% processor load is caused by the Delphi button (on the Delphi toolbar)!
I like to switch between the new full-screen and the old Delphi-7-like IDEs. There is a β€œDock Editing Window" button that does this. Each time I installed a new version of Delphi, I customized the look of the IDE and added this button to the toolbar. After I remove the button, everything works fine.

Conclusion, do not drop this button on the IDE toolbar.


2010 update
I found a similar problem when I open a DPR file in the IDE. There is no solution for this.

2011 update
Another similar Delphi error (solution provided by @Warren P) Delphi XE occupies one full core (100% CPU load)

2015 update
I found a button that caused the above problem (100% CPU usage when editing a DPR file). It was a "Use device" button.

+9
source

..this is the mode of action of Delphi. Some β€œbuttons” use Action to control things, so if an Action on Idle event runs some kind of code, it continues to happen using the processor, as if you were executing the code in an endless loop. You cannot do anything except as you said, do not use this button.

+3
source

I assume that the first step would be to try to determine which part of the dolphi is 100%. Is it a main stream or a secondary stream? If you manage to determine which thread is clogging the entire processor power, I think you could debug the IDE (attach to the process from the second instance of delphi, maybe D7, so you will not have 2 applications that direct your processor), and then go to "offensive" thread. With some luck, code execution may have some debugging information indicating what is being done.

If you have third-party / home components installed, try uninstalling them.

As already mentioned, try disabling code understanding.

Try disabling the launch of any antivirus. (Maybe some kind of Live-Lock)

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

+2
source

This is code insight or another IDE feature that compiles material in the background. It’s normal for D2005 to go into zombie mode for half a minute or so, and the swamp is one of my cores. The D2010 seems to be much better. Try disabling the gizmos IDE (code completion, code parameters, tootip, understanding errors, etc.) and see if it calms down. If so, return them one at a time and see what you find.

+1
source

Source: https://habr.com/ru/post/1309021/


All Articles