Sometimes actions inside an application need their time. From retrieving data from REST service or a database to scanning your hard disk for all files containing images, there are a plethora of things that can be time consuming. In case these tasks are executed in the main thread the application will probably become unresponsive and feels like frozen – to the user as well as to the operating system.
There is a good chance that one can solve this by moving the time consuming task into a thread. That is usually where the problems start creeping in. Continue reading “Async Tasks in VCL Projects”