When i closed second session, an error occurred.
WinSCP 5.9.4
Error message:
List index out of bounds (-1)
Stack trace:
(003B1C14) System::Syncobjs::TCriticalSection::Enter
(00866B5E) C5073_0
(00868BC6) ____ExceptionHandler
(00865980) __ExceptionHandler
(0005A466) ntdll.dll
(0000F12E) ntdll.dll.KiUserExceptionDispatcher
(006A8DA2) TFTPFileSystem::ProcessMessage
(006A912F) TFTPFileSystem::DoWaitForReply
(006A921B) TFTPFileSystem::WaitForReply
(006A9274) TFTPFileSystem::WaitForCommandReply
(0008B213) TTerminalManager::FreeActiveTerminal
(0024ACD0) Vcl::Controls::TControl::MouseDown
(0024AD68) Vcl::Controls::TControl::DoMouseDown
(0024AF4D) Vcl::Controls::TControl::WMMButtonDown
(0024F269) Vcl::Controls::TWinControl::WndProc
(0024E8B0) Vcl::Controls::TWinControl::MainWndProc
(0037322C) System::Classes::_18201
(000152F7) USER32.dll
(00015D35) USER32.dll
(0001FD22) USER32.dll
(0001FD48) USER32.dll.CallWindowProcW
(0042CA3F) Dragdrop::TDragDrop::WndMethod
(0037322C) System::Classes::_18201
(000152F7) USER32.dll
(00015D35) USER32.dll
(000167BF) USER32.dll
(00016885) USER32.dll.DispatchMessageW
(008671C9) C5073_0
(008687A3) _ReThrowException
(006A919C) TFTPFileSystem::DoWaitForReply
(006A921B) TFTPFileSystem::WaitForReply
(006A9274) TFTPFileSystem::WaitForCommandReply
(0008B213) TTerminalManager::FreeActiveTerminal
(0024ACD0) Vcl::Controls::TControl::MouseDown
(0024AD68) Vcl::Controls::TControl::DoMouseDown
(0024AF4D) Vcl::Controls::TControl::WMMButtonDown
(0024F269) Vcl::Controls::TWinControl::WndProc
(0024E8B0) Vcl::Controls::TWinControl::MainWndProc
(0037322C) System::Classes::_18201
(000152F7) USER32.dll
(00015D35) USER32.dll
(0001FD22) USER32.dll
(0001FD48) USER32.dll.CallWindowProcW
(0042CA3F) Dragdrop::TDragDrop::WndMethod
(0037322C) System::Classes::_18201
(000152F7) USER32.dll
(00015D35) USER32.dll
(000167BF) USER32.dll
(00016885) USER32.dll.DispatchMessageW
(003561A9) System::Classes::TList::Get
(003561A9) System::Classes::TList::Get
(0008B213) TTerminalManager::FreeActiveTerminal
(0024ACD0) Vcl::Controls::TControl::MouseDown
(0024AD68) Vcl::Controls::TControl::DoMouseDown
(0024AF4D) Vcl::Controls::TControl::WMMButtonDown
(0024F269) Vcl::Controls::TWinControl::WndProc
(0024E8B0) Vcl::Controls::TWinControl::MainWndProc
(0037322C) System::Classes::_18201
(000152F7) USER32.dll
(00015D35) USER32.dll
(0001FD22) USER32.dll
(0001FD48) USER32.dll.CallWindowProcW
(0042CA3F) Dragdrop::TDragDrop::WndMethod
(0037322C) System::Classes::_18201
(000152F7) USER32.dll
(00015D35) USER32.dll
(000167BF) USER32.dll
(00016885) USER32.dll.DispatchMessageW
The problem happens rarely. I cannot reproduce it.