"Invalid access to memory" with SynchronizationCriteria.Checksum

Advertisement

geek569
Joined:
Posts:
14

"Invalid access to memory" with SynchronizationCriteria.Checksum

session.SynchronizeDirectories(SynchronizationMode.Remote, @"D:\test\", "/test", true, mirror: true, criteria: SynchronizationCriteria.Checksum);
this above code throws:
Error: WinSCP.SessionRemoteException: Invalid access to memory. at WinSCP.OperationResultBase.Check()
the exception is gone by removing
criteria: SynchronizationCriteria.Checksum

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: "Invalid access to memory" with SynchronizationCriteria.Checksum

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

martin
Site Admin
martin avatar

Re: "Invalid access to memory" with SynchronizationCriteria.Checksum

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.

Reply with quote

Advertisement

geek569
Joined:
Posts:
14

I'm using NuGet but the v6.4 not published yet.
I tried to overwrite WinSCP.exe and WinSCPnet.dll but I got:
Method not found: 'Void System.Threading.EventWaitHandle..ctor(Boolean, System.Threading.EventResetMode, System.String, Boolean ByRef, System.Security.AccessControl.EventWaitHandleSecurity)'.

Reply with quote

martin
Site Admin
martin avatar

That means your SFTP server does not support checksums. And you also do not have a shell access, so WinSCP cannot use a fallback mechanism of calculating checksums using shell commands.

Reply with quote

Advertisement

You can post new topics in this forum