Re: Attempted to read or write protected memory. (General questions)
I've got the same problem using SFTP 3.4.4.112
This is with blocking as true - if false, it hangs at the [inlinecode]var km = new KeyManager();[/inlinecode] stage.
This scenario is running through this code from 4 projects, at the same time.
Thanks, Paul
[code]
this.sftp = new SFTP();
this.sftp.ProgressEvent += sftp_ProgressEvent;
this.sftp.DoneEvent += sftp_DoneEvent;
this.sftp.Hostname = FtpAddress;
this.sftp.Login = FtpUserName;
this.sftp.Blocking = true;
this.sftp.Resume = true;
var km = new KeyManager();
var type = km.Load(FtpKeyLocation);
this.sftp.PrivateKey = km.PrivateKey(type);
this.sftp.Authentication = SFTP.Authentications.PublicKey;
this.sftp.Connect();
[/code]