Vote UpVote

TPL - TTask an example in how not to use.

Rob's Technology Corner – Delphi XE7 contains a new Task Parallel Library, which is really powerful and easy to start using.   But it can be something that can be done wrong, and not realize it until it's much later.Lets take the following fictional example.There is form with a single button and a list box.   When the button is pressed a long process occurs, when the process is complete it needs to add an item to the list box.This could be done without Multi-threading. procedure TForm5.Button1Click(Sender: TObject);begin Button1.Enabled := False; SlowProc; Button1.Enabled := True;end;procedure ...
Favorite? Off-Topic? Robert Love @ 2015-02-12 19:34


Visits: 1140
Votes: 5
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Mohammed Nasman
Robert Love
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)