How to synchronize Threads?

Feb 20, 2013 at 6:21 PM
Edited Feb 20, 2013 at 6:22 PM
So I have a application which queues up files and spawns Tasks to handle the uploading on separate threads. When I try to use the sftpClient inside this thread I get an exception:

Object synchronization method was called from an unsynchronized block of code

This happens when the Connect() method is called.
How do I get the sftpClient in sync with it's parent thread?
Feb 21, 2013 at 3:15 PM
Looks like a newer version of the library was released, after upgrading this error went away so happy days!
Coordinator
Feb 21, 2013 at 8:42 PM
No problem, glad it worked out.
I did addressed some synchronization recently so I guess it was one of them.

Thanks,
Oleg