(05-18-2023, 03:51 AM)zsleo Wrote: I need users to download large files (up to 800 MB) using Indy FTP.
I am able to update the progress bar using TTask for some other lengthy processes but as soon as I start the FTP get file the procress bar stops updating.
Like most components in Indy, TIdFTP blocks the calling thread until the requested operation is finished. Are you performing the FTP transfer in the context of the main UI thread or a worker thread?
If the former, are you using TIdAntiFreeze to keep servicing the main UI message queue while the FTP transfer is busy?
If the latter, are you synchronizing with the main UI thread, such as with TThread.Synchronize()/TThread.Notify(), or TIdSync/TIdNotify, etc?
Can you provide your actual FTP code?