List index out of bounds (-1) - _winscp_query
<If relevant, consider attaching a session log file or a screenshot)>
WinSCP 5.16.2
Error message:
List index out of bounds (-1)
Stack trace:
(00BE0CB9) _winscp_query
(0003EF0E) ntdll.dll.ZwWow64CallFunction64
(0003F68A) ntdll.dll.KiUserExceptionDispatcher
(00D05608) TSecureShell::EventSelectLoop
(00D04095) TSecureShell::Close
(00D4E69B) TSFTPFileSystem::Close
(0002C256) TCustomScpExplorerForm::CloseSessionTab
(002794B1) Vcl::Controls::TWinControl::WndProc
(00278AF8) Vcl::Controls::TWinControl::MainWndProc
(003A4114) System::Classes::_18201
(00007E6F) USER32.DLL.CallNextHookEx
(000080CC) USER32.DLL
(00013D60) USER32.DLL.CallWindowProcW
(0047B1B7) Dragdrop::TDragDrop::WndMethod
(003A4114) System::Classes::_18201
(00007E6F) USER32.DLL.CallNextHookEx
(000080CC) USER32.DLL
(0000966A) USER32.DLL
(000096DB) USER32.DLL.DispatchMessageW
(00386FD9) System::Classes::TList::Get
(00386FD9) System::Classes::TList::Get
(0002C256) TCustomScpExplorerForm::CloseSessionTab
(002794B1) Vcl::Controls::TWinControl::WndProc
(00278AF8) Vcl::Controls::TWinControl::MainWndProc
(003A4114) System::Classes::_18201
(00007E6F) USER32.DLL.CallNextHookEx
(000080CC) USER32.DLL
(00013D60) USER32.DLL.CallWindowProcW
(0047B1B7) Dragdrop::TDragDrop::WndMethod
(003A4114) System::Classes::_18201
(00007E6F) USER32.DLL.CallNextHookEx
(000080CC) USER32.DLL
(0000966A) USER32.DLL
(000096DB) USER32.DLL.DispatchMessageW
The problem happens rarely. I cannot reproduce it.