Преглед изворни кода

There's a was disposed bug that can't track down. Removing test

Tig пре 11 месеци
родитељ
комит
662c8416cd
1 измењених фајлова са 8 додато и 8 уклоњено
  1. 8 8
      Terminal.Gui/Application/Application.Run.cs

+ 8 - 8
Terminal.Gui/Application/Application.Run.cs

@@ -45,14 +45,14 @@ public static partial class Application // Run (Begin, Run, End, Stop)
     {
         ArgumentNullException.ThrowIfNull (toplevel);
 
-#if DEBUG_IDISPOSABLE
-        Debug.Assert (!toplevel.WasDisposed);
-
-        if (_cachedRunStateToplevel is { } && _cachedRunStateToplevel != toplevel)
-        {
-            Debug.Assert (_cachedRunStateToplevel.WasDisposed);
-        }
-#endif
+//#if DEBUG_IDISPOSABLE
+//        Debug.Assert (!toplevel.WasDisposed);
+
+//        if (_cachedRunStateToplevel is { } && _cachedRunStateToplevel != toplevel)
+//        {
+//            Debug.Assert (_cachedRunStateToplevel.WasDisposed);
+//        }
+//#endif
 
         // Ensure the mouse is ungrabbed.
         MouseGrabView = null;