Uwe Raabe 2064 Posted November 7, 2021 (edited) I wrote an article about Async Tasks in VCL Projects Edited November 7, 2021 by Uwe Raabe 9 4 Share this post Link to post
Uwe Raabe 2064 Posted November 8, 2021 (edited) Sources also available on https://github.com/UweRaabe/AsyncTasksInVclProjects Edited November 8, 2021 by Uwe Raabe fixed repo name 1 Share this post Link to post
Anders Melander 1815 Posted November 8, 2021 1 hour ago, Uwe Raabe said: Sources also available on https://github.com/UweRaabe/AsncTasksInVclProjects Y-key broken? Share this post Link to post
Uwe Raabe 2064 Posted November 8, 2021 3 minutes ago, Anders Melander said: Y-key broken? Fixed. Also the link! Share this post Link to post
Lars Fosdal 1793 Posted November 9, 2021 You've put good advice in that article, @Uwe Raabe. Just my two cents... A lot of people say multi-threading is hard. It is only hard if you have not learned to do it properly, like any other thing in life. Debugging multi-threading apps, on the other hand... Make sure you log a lot - with the thread context in the log. IMO, the debugger is not yet properly equipped to deal with multiple threads, unless you count using lots and lots of breakpoint tweaking. The Parnassus Parallel Debugger plugin may solve some of that, but it is not yet out for Delphi 11, and it has stability issues in 10.4. 1 Share this post Link to post
dummzeuch 1517 Posted November 9, 2021 I consider multithreading as hard enough to not use it if it isn't necessary. And there are many types of programs where it isn't. In particular, as you said, the lack of proper debugger support makes it hard. Share this post Link to post