Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.
I have been using a powershell script that calls out to a winscp script to move files to and from Sharefile. That powershell script is in turn set up as an action through Task Scheduler and runs every five minutes. At the end of last month I started to experience random files not being uploaded to ShareFile. Not all uploads and downloads are effected by this, but enough to have me start digging into the issue. There was no pattern to the missing files, but when I reviewed the logs I noticed "Invalid Access to Memory".
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="http://winscp.net/schema/session/1.0" name="ShareFile" start="2020-02-27T16:05:02.465Z">
<failure>
<message>Invalid access to memory</message>
</failure>
Sometimes I would have this appear after a string of successful downloads and/or uploads.
</download>
<rm>
<filename value="/SFTP Sites/RVH/Files for ARS/inv_ars_20200226.txt" />
<result success="true" />
</rm>
<failure>
<message>Invalid access to memory</message>
</failure>
I have been reviewing some of the other forum posts and found that this may be related to a bug in the version of WinSCP. I am currently using Version 5.1.7(Build 3446). Is there any other information that I can provide to help resolve this issue?