What is the correct way to initiate multiple sessions each connecting to a different host? I am running some tests now with an application that starts 4 threads, each one creating a new instance of SessionOptions & WinSCP.Session(), and then calling PutFiles to send files to 4 different servers. It seems in some cases they run in parallel, but in other cases some threads will hang.
Will creating a new Session in each thread allow parallel calls to the underlying winscp.exe ?
Is this the safest/best performing strategy?
Thanks for any advice