Cannot focus a disabled or invisible window - Vcl::Forms::TCustomForm::SetFocus
<If relevant, consider attaching a session log file or a screenshot)>
WinSCP 5.17
Error message:
Cannot focus a disabled or invisible window
Stack trace:
(0023860D) Vcl::Forms::TCustomForm::SetFocus
(00019DA7) TCustomScpExplorerForm::FormCloseQuery
(002381A1) Vcl::Forms::TCustomForm::CloseQuery
(003A4568) System::Classes::_18201
(00043389) USER32.dll
(00023F87) USER32.dll
(00023B25) USER32.dll
(0002D0DD) USER32.dll
(000731DB) ntdll.dll.KiUserCallbackDispatcher
(0002533A) USER32.dll
(00025CD6) UXTHEME.DLL.IsThemeActive
(00028850) UXTHEME.DLL
(00027F33) UXTHEME.DLL
(000255B1) USER32.dll
(0023C2A5) Vcl::Forms::_16944
(0023C511) Vcl::Forms::TApplication::WndProc
(003A4568) System::Classes::_18201
(00043389) USER32.dll
(00023F87) USER32.dll
(000230D9) USER32.dll
(00022EBB) USER32.dll.DispatchMessageW
The problem happens rarely. I cannot reproduce it.