Steps to reproduce:
1. Open the attached “HiddenWindowErrors.zip” project
2. Build the project
3. In File Explorer, open “ReproWindowsHost/ReproHost”
4. Open the “ReproHost.sln”
5. In “Form1.cs” line 67, paste the path to the built project .exe file
6. Run the project
7. Click “Toggle Visibility” and make the window bigger
8. Click “Toggle Visibility” two times to show and hide the window
9. Make the window smaller and click “Toggle Visibility”
10. Observe the result
Expected result: The build window is resized normally
Actual result: The build window freezes and another smaller window is shown
Reproducible in: 2022.1.0a1, 2022.3.61f1, 6000.0.45f1, 6000.1.0b14
Couldn’t test in: 6000.2.0a8 (because build was frozen)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
- Sometimes error messages are shown in the smaller window
- Sometimes the window needs to be resized multiple times to get the error