4

Whenever I try to copy a file that's bigger than 2GB, I get an array index out of bounds exception in the Get method:

Scp myScp = new Scp("remotehost", "joe", "mypassword");
myScp.OnTransferProgress += new FileTransferEvent(scpProg);
myScp.Connect(22);
myScp.Get("/home/joe/bigfile.bin", "/tmp/bigfile.bin");
myScp.Close();
JCCyC
  • 16,140
  • 11
  • 48
  • 75

1 Answers1

4

...which I solved by patching SharpSSH replacing int with Int64 in strategic places. Here's the patch.

JCCyC
  • 16,140
  • 11
  • 48
  • 75
  • 1
    I'm starting to add some stuff that I needed to SharpSSH over at https://bitbucket.org/mattgwagner/sharpssh and I am going to try and include your patch. – MattGWagner Apr 19 '11 at 13:49
  • Please tell me you're making it run in .NET 4.0! I get some weird errors in host resolution when I compile Tamir's code under .NET 4. It only works up to .NET 3.5. – JCCyC Apr 20 '11 at 21:14
  • It's definitely not the smoothest experience and the exception handling is awful, but at least it's a starting point! – MattGWagner Apr 21 '11 at 03:17