Re: Solved problem with IDisposable
Can you implement IDisposable? I had this exact problem but calling .Dispose() after each use worked. I now have 0 'ghost' WinSCP processes :).
The
Session
class implements IDisposable
:
https://winscp.net/eng/docs/library_session#syntax
Note the use of
using
in all .NET examples for WinSCP .NET assembly.
One example out of many: https://winscp.net/eng/docs/library#example