After the Windows 10 update KB4601055 is installed Visual Studio may crash with an exception similar too:
System.NullReferenceException at System.Windows.Interop.HwndMouseInputProvider.HasCustomChrome(System.Windows.Interop.HwndSource, RECT ByRef
Resolution :
Refer to following Microsoft link for details on the workaround:
https://support.microsoft.com/en-us/topic/february-9-2021-kb4601055-cumulative-update-for-net-framework-3-5-and-4-8-for-windows-10-version-1809-and-windows-server-version-2019-38aea913-ccd7-bc76-db60-9521318f97cb
Workaround steps are:
1) Using an Administrator account, browse to the Visual Studio install location, such as C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\IDE
2) Make a backup copy of devenv.exe.config
3) Open devenv.exe.config in a text editor and locate the line that begins with:
<AppContextSwitchOverrides
4) Add the following to the end of the value string (including the semicolon at the start):
;Switch.System.Windows.Interop.MouseInput.OptOutOfMoveToChromedWindowFix=true;Switch.System.Windows.Interop.MouseInput.DoNotOptOutOfMoveToChromedWindowFix=true
5) Save and close the file.
#MFDS
#EnterpriseDeveloper
