Vote UpVote

Updating Actions (Don’t Do This) – Dave’s Development Blog

The Wiert Corner – I remember fixing a high CPU toggling the Enabled property in an OnUpdate even handler on a TCustomAction descendant quite some time ago, but wasn’t completely sure of the exact cause. My fix was to only set it once every clock tick (about every 20 milliseconds). The best fix would have been not to toggle at all: just calculate the right result, then only set the Enabled property once: [WayBack] Updating Actions (Don’t Do This) – Dave’s Development Blog –jeroen
Favorite? Off-Topic? jpluimers @ 2020-05-13 07:02


Visits: 161
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Michał Rajewicz
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)