Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: How to connect to another host without creating a new object

The Session.Close is available in the latest beta version only:
See https://winscp.net/eng/docs/library_session_close

Anyway, what's is the problem in creating a new object for every session?
Thierry59

How to connect to another host without creating a new object

Hello all, this is my first post.

I had a look around to find a solution to this problem but I did not find the answer.

This is my pb :
I'm using WinSCP dll in .net visual studio 2008

I want to connect to 6 hosts and get files.

I first connect to the first host.
But I don't know how to close the session and re open a new one for the second host without creating a new object.

I hope that my explanation was clear enough ?

Has someone the solution for this kind of pb ?

WinSCP.Close() is not found in the methods I only have Dispose()