I've had this problem for years!
Thanks for finding the cause!
Thanks for finding the cause!
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
WM_SETTINGCHANGE
/ImmersiveColorSet
message is received, so it might only happen when dark mode is used. A traceback image for 5.21.3 is attached.
OnSettingsChangeAlldoc()
seems to loop through all registered documents and call OnSettingsChange()
on them, so my guess is the update dialog/component is still registered but released from memory, so there is an access violation eventually.
Faulting application name: WinSCP.exe, version: 5.21.5.12858, time stamp: 0x00000000
Faulting module name: MSHTML.dll, version: 11.0.19041.2006, time stamp: 0x2f20bbb2
Exception code: 0xc0000005
Fault offset: 0x0035c510
Faulting process id: 0x185cc4
Faulting application start time: 0x01d90647331d0fa0
Faulting application path: C:\Users\username\AppData\Local\Programs\WinSCP\WinSCP.exe
Faulting module path: C:\WINDOWS\SYSTEM32\MSHTML.dll
Report Id: 1b58d653-8dd5-4388-906b-84a68dca61ee
Faulting package full name:
Faulting package-relative application ID: