Your application must do some work which blocks the main thread, and your progress indicator does not update until the job is done. Under windows you might have introduced “Application.ProcessMessages()” but this is not cross platform and can cause serious performance problems under FMX. What can you do about it?

 

[ Continue Reading ]

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder. Design. Code. Compile. Deploy.

Start Free Trial   Free Delphi Community Edition   Free C++Builder Community Edition   Upgrade Today  

Parents
No Data
Comment
  • Since writing this work-around on my blog, I've encountered the blocking thread issue again and adjusted the code. A better strategy is to place your work within the TTask, and then call TThread.Synchronize() to update the UI. I used this technique in my video series "Brutally Roll Your Own Backend - Part 8" which can be found here chapmanworld.com/.../ (skip to around 42-43 minutes in).
Children
No Data