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.
Step to reproduce:
1. Connect to VPN service.
2. Connect to server via SCP protocol using username and password
3. Successfully connect
4. Browse somewhere
5. Disconnect VPN
6. WinSCP attempt to reconnect, I try to close connection window, it show "Cancelling..."
7. And, program error. I can't close WinSCP. I have to force close using Task manager.
WinSCP 5.13.5
Error message:
Invalid access to memory.
Stack trace:
(003F2A9F) System::DoneExcept
(0007DABF) ntdll.dll
(0006B6E1) ntdll.dll.KiUserExceptionDispatcher
(00380EE0) System::Classes::_18201
(0003AF19) USER32.dll
(000373E5) USER32.dll
(00036C99) USER32.dll
(00036A7B) USER32.dll.DispatchMessageW
(003F268C) System::HandleAnyException
(0007DABF) ntdll.dll
(0006B6E1) ntdll.dll.KiUserExceptionDispatcher
(00380EE0) System::Classes::_18201
(0003AF19) USER32.dll
(000373E5) USER32.dll
(00036C99) USER32.dll
(00036A7B) 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.