Archived Forum Post

Index of archived forum posts

Question:

AsyncPutFileStart still blocks the main UI

Mar 10 '14 at 01:48

Hi,

I am using this library for iOS. I am trying to upload file asynchronously using AsyncPutFileStart. But it still block the main UI its not starting in background.

I've purchased this library but my client's email is registered with it.


Answer

The AsyncPutFileStart method does nothing more than start a background thread that will do the upload. It should not block the main UI.

The only way it can block is if another thread is making a synchronous call on the same CkoFtp2 object instance. Because the class is thread-safe, only a single call at a time is allowed on the same instance of a CkoFtp2 object.