Is Storage.OnRequestProgress thread safe?

FNC Cloud Pack does the uploading and downloading in a background thread.
To show the user the progress by updating a progress bar I'm using

TMSFNCCloudStorageServices.Storage.OnRequestProgress:=UploadProgress

Is the code in my UploadProgress method running in the main thread?

More to the point, should I be calling TThread.Synchronize() when updating the progress bar?

Hi,

OnRequestProgress is thread safe, so you can update the GUI without the need to call TThread.Synchronize

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.