Skip to content

Handle transient GDI+ ExternalException in SplitContainer.RepaintSplitterRect during display-session transition#14565

Open
LeafShi1 wants to merge 2 commits into
dotnet:mainfrom
LeafShi1:Fix_14562_GDI+_Exception_drawing_SplitContainer
Open

Handle transient GDI+ ExternalException in SplitContainer.RepaintSplitterRect during display-session transition#14565
LeafShi1 wants to merge 2 commits into
dotnet:mainfrom
LeafShi1:Fix_14562_GDI+_Exception_drawing_SplitContainer

Add Debug.Fail for ExternalException to prevent silent failures

4e84aa1
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet-winforms CI succeeded May 28, 2026 in 17m 1s

Build #20260527.8 had test failures

Details

Tests

  • Failed: 1 (0.00%)
  • Passed: 110,308 (99.63%)
  • Other: 410 (0.37%)
  • Total: 110,719

Annotations

Check failure on line 1 in Microsoft.VisualBasic.Forms.Tests.WindowsFormsApplicationBaseTests.ShowHideSplashScreenSuccess

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-winforms CI

Microsoft.VisualBasic.Forms.Tests.WindowsFormsApplicationBaseTests.ShowHideSplashScreenSuccess

System.InvalidOperationException : Value Dispose() cannot be called while doing CreateHandle().
Raw output
   at System.Windows.Forms.Control.Dispose(Boolean disposing) in /_/src/System.Windows.Forms/System/Windows/Forms/Control.cs:line 4802
   at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing) in /_/src/System.Windows.Forms/System/Windows/Forms/Layout/Containers/ContainerControl.cs:line 598
   at System.Windows.Forms.Form.Dispose(Boolean disposing) in /_/src/System.Windows.Forms/System/Windows/Forms/Form.cs:line 3557
   at System.ComponentModel.Component.Dispose()
   at Microsoft.VisualBasic.Forms.Tests.WindowsFormsApplicationBaseTests.ShowHideSplashScreenSuccess() in /_/src/Microsoft.VisualBasic.Forms/tests/UnitTests/System/Windows/Forms/WindowsFormsApplicationBaseTests.vb:line 127
   at Microsoft.VisualBasic.Forms.Tests.WindowsFormsApplicationBaseTests.ShowHideSplashScreenSuccess() in /_/src/Microsoft.VisualBasic.Forms/tests/UnitTests/System/Windows/Forms/WindowsFormsApplicationBaseTests.vb:line 119
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)