Monthly Archives: August 2017

Updating Actions (Don’t Do This)

By | August 23, 2017

What’s my app doing… So the other day I wrote the following code in an TAction‘s on update event handler. I didn’t spot the issue immediately but my application at certain times was consuming 100% of a CPU on my laptop. Procedure TXTDefaultMenus.UpdateActionCapability(Const Capability : TXTFileCapability; Const Sender : TObject); Var F: TForm; FC :… Read More »