@hussainj: 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.
<Try to describe precise steps that lead to the problem (where do you click, what keys do you press, what do you see, etc.)>
<If relevant, consider attaching a session log file or a screenshot)>
WinSCP 5.19
Error message:
Invalid access to memory.
Stack trace:
(00DC08B3) TTerminal::ClearCaches
(000878AF) ntdll.dll
(00073EE1) ntdll.dll.KiUserExceptionDispatcher
(0040B238) System::Actions::TContainedActionList::ExecuteAction
(001CD325) Vcl::Actnlist::TCustomAction::Execute
(003C7838) System::Classes::_18201
(00042399) USER32.dll
(00039335) USER32.dll
(00037095) USER32.dll
(00036E5B) USER32.dll.DispatchMessageW
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.