Connection (to an AWS instance running Amazon Linux using the private key and default ec2-user account) was left open for a long period of time, with several sleep/resume of computer. Upon next switching to WinSCP intending to close it, I noted that it was asking for login information (this is mysterious, as I was connecting using a SSH key, not username/pass). Clicking cancel, I received this error. I would not expect WinSCP to be able to keep the session alive or resume it, but I would expect a more graceful failure than this. This issue has occurred every time that I'd forgotten about an open WinSCP connection to one my my AWS instances and subsequently slept and resumed the system.
WinSCP 5.13.5
Error message:
Invalid access to memory.
Stack trace:
(003F2A9F) System::DoneExcept
(00088DEF) ntdll.dll
(0006FCE1) ntdll.dll.KiUserExceptionDispatcher
(00380EE0) System::Classes::_18201
(0001D0B9) USER32.dll
(00027844) USER32.dll
(0002A140) USER32.dll
(000180D7) USER32.dll
(00017C1B) USER32.dll.DispatchMessageW
(003F268C) System::HandleAnyException
(00088DEF) ntdll.dll
(0006FCE1) ntdll.dll.KiUserExceptionDispatcher
(00380EE0) System::Classes::_18201
(0001D0B9) USER32.dll
(00027844) USER32.dll
(0002A140) USER32.dll
(000180D7) USER32.dll
(00017C1B) USER32.dll.DispatchMessageW
Status: all_insignificant
I know how to reproduce the problem or the problem happens frequently enough. I wish to be contacted by the WinSCP team to help resolving the problem.