Cannot change Visible in OnShow or OnHide - Vcl::Forms::TCustomForm::CMShowingChanged
<If relevant, consider attaching a session log file or a screenshot)>
WinSCP 5.9.1
Error message:
Cannot change Visible in OnShow or OnHide
Stack trace:
(0020CAD0) Vcl::Forms::TCustomForm::CMShowingChanged
(00022C5F) TCustomScpExplorerForm::CMShowingChanged
(00022BD4) TCustomScpExplorerForm::Dispatch
(0024EA59) Vcl::Controls::TWinControl::WndProc
(00208F08) Vcl::Forms::TCustomForm::WndProc
(008082B5) Vclcommon::C2754_0
(00249B50) Vcl::Controls::TControl::Perform
(0024DE49) Vcl::Controls::TWinControl::UpdateShowing
(0024DF58) Vcl::Controls::TWinControl::UpdateControlState
(0024DCEF) Vcl::Controls::TWinControl::CMRecreateWnd
(00022BE8) TCustomScpExplorerForm::Dispatch
(0024EA59) Vcl::Controls::TWinControl::WndProc
(00208F08) Vcl::Forms::TCustomForm::WndProc
(008083DC) Vclcommon::C2754_0
(00249B50) Vcl::Controls::TControl::Perform
(0024DCAA) Vcl::Controls::TWinControl::RecreateWnd
(00047338) TScpExplorerForm::RestoreFormParams
(00022C5F) TCustomScpExplorerForm::CMShowingChanged
(00022BD4) TCustomScpExplorerForm::Dispatch
(0024EA59) Vcl::Controls::TWinControl::WndProc
(00208F08) Vcl::Forms::TCustomForm::WndProc
(008082B5) Vclcommon::C2754_0
(00249B50) Vcl::Controls::TControl::Perform
(0024DE49) Vcl::Controls::TWinControl::UpdateShowing
(0024DF58) Vcl::Controls::TWinControl::UpdateControlState
(00250AFE) Vcl::Controls::TWinControl::CMVisibleChanged
(0024EA59) Vcl::Controls::TWinControl::WndProc
(00208F08) Vcl::Forms::TCustomForm::WndProc
(008083DC) Vclcommon::C2754_0
The problem happens rarely. I cannot reproduce it.