<Try to describe precise steps that lead to the problem (where do you click, what keys do you press, what do you see, etc.)>
This connection was to a computer on my local home network. I had gone to sleep last night with it still connected. This morning, I found that my Putty connection had disconnected from an apparent lost network connection.
After the network reconnected, WinSCP also reconnect and was waiting at the login screen for me. I clicked "Cancel" (or the verbiage similar to that). The error message window popped up.
<If relevant, consider attaching a session log file or a screenshot)>
WinSCP 5.13.1
Error message:
Invalid access to memory.
Stack trace:
(0001AAC6) TCustomScpExplorerForm::UpdateTerminal
(008BA3F6) C5101_0
(008BC45E) ____ExceptionHandler
(008B9218) __ExceptionHandler
(00088D1F) ntdll.dll
(0006FC11) ntdll.dll.KiUserExceptionDispatcher
(000417DF) TScpCommanderForm::UpdateTerminal
(00005D6C) TCustomScpExplorerForm::TerminalChanging
(00094BF3) TTerminalManager::DoSetActiveTerminal
(00094B7E) TTerminalManager::SetActiveTerminal
(000940A3) TTerminalManager::FreeActiveTerminal
(00094892) TTerminalManager::ReconnectActiveTerminal
(000A31A9) ShowExtendedExceptionEx
(0001D614) TCustomScpExplorerForm::ShowExtendedException
(00095D91) TTerminalManager::TerminalShowExtendedException
(007B60E8) TTerminal::ShowExtendedException
(0021D95E) Vcl::Forms::TApplication::HandleException
(0037ED60) System::Classes::_18201
(0001D0B9) USER32.dll
(00027844) USER32.dll
(0002A140) USER32.dll
(000180D7) USER32.dll
(00017C1B) USER32.dll.DispatchMessageW
(00094986) TTerminalManager::FreeTerminal
(00088D1F) ntdll.dll
(0006FC11) ntdll.dll.KiUserExceptionDispatcher
(000940A3) TTerminalManager::FreeActiveTerminal
(000A31A9) ShowExtendedExceptionEx
(0001D614) TCustomScpExplorerForm::ShowExtendedException
(00095D91) TTerminalManager::TerminalShowExtendedException
(007B60E8) TTerminal::ShowExtendedException
(0021D95E) Vcl::Forms::TApplication::HandleException
(0037ED60) System::Classes::_18201
(0001D0B9) USER32.dll
(00027844) USER32.dll
(0002A140) USER32.dll
(000180D7) USER32.dll
(00017C1B) USER32.dll.DispatchMessageW
(00361CDD) System::Classes::TList::Get
(00361CDD) System::Classes::TList::Get
(000940A3) TTerminalManager::FreeActiveTerminal
(000A31A9) ShowExtendedExceptionEx
(0001D614) TCustomScpExplorerForm::ShowExtendedException
(00095D91) TTerminalManager::TerminalShowExtendedException
(007B60E8) TTerminal::ShowExtendedException
(0021D95E) Vcl::Forms::TApplication::HandleException
(0037ED60) System::Classes::_18201
(0001D0B9) USER32.dll
(00027844) USER32.dll
(0002A140) USER32.dll
(000180D7) USER32.dll
(00017C1B) USER32.dll.DispatchMessageW
(003F046C) System::HandleAnyException
(00088D1F) ntdll.dll
(0006FC11) ntdll.dll.KiUserExceptionDispatcher
(0037ED60) System::Classes::_18201
(0001D0B9) USER32.dll
(00027844) USER32.dll
(0002A140) USER32.dll
(000180D7) USER32.dll
(00017C1B) USER32.dll.DispatchMessageW
The problem happens rarely. I cannot reproduce it.