Exception:在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。

报错信息 1
InvalidOperationException: 在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。
StackTrace:
   在 System.Windows.Window.VerifyNotClosing()
   在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
   在 System.Windows.Window.OnDeactivated(EventArgs e)
   在 System.Windows.Window.HandleActivate(Boolean windowActivated)
   在 System.Windows.Window.WmActivate(IntPtr wParam)
   在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

版本:1.44.5 2025-05-01 14:25 Microsoft Windows NT 10.0.26100.0
版本:1.44.3 2025-04-26 12:38 Microsoft Windows NT 10.0.26100.0
版本:1.43.57 2025-04-25 09:39 Microsoft Windows NT 10.0.19045.0
版本:1.43.68 2025-04-24 18:39 Microsoft Windows NT 10.0.19045.0
版本:1.43.68 2025-04-23 09:04 Microsoft Windows NT 10.0.26100.0
版本:1.43.68 2025-04-18 16:14 Microsoft Windows NT 10.0.19045.0
版本:1.43.68 2025-04-16 21:27 Microsoft Windows NT 10.0.19045.0
版本:1.43.63 2025-04-15 20:05 Microsoft Windows NT 10.0.26100.0
版本:1.43.63 2025-04-15 09:24 Microsoft Windows NT 10.0.19045.0
版本:1.43.68 2025-04-14 15:38 Microsoft Windows NT 10.0.19045.0
版本:1.43.68 2025-04-13 16:15 Microsoft Windows NT 10.0.22000.0
版本:1.43.57 2025-04-11 14:42 Microsoft Windows NT 10.0.19045.0
版本:1.43.57 2025-04-11 13:31 Microsoft Windows NT 10.0.26100.0
版本:1.43.68 2025-04-11 12:21 Microsoft Windows NT 10.0.26100.0
版本:1.43.57 2025-04-11 10:38 Microsoft Windows NT 10.0.22631.0
版本:1.43.68 2025-04-10 23:27 Microsoft Windows NT 10.0.19045.0
版本:1.43.66 2025-04-10 23:15 Microsoft Windows NT 10.0.19045.0
版本:1.43.68 2025-04-10 22:54 Microsoft Windows NT 10.0.22635.0
版本:1.43.68 2025-04-10 22:40 Microsoft Windows NT 10.0.26100.0
版本:1.43.29 2025-04-09 20:07 Microsoft Windows NT 10.0.22635.0
报错信息 2
InvalidOperationException: 在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。
StackTrace:
   在 System.Windows.Window.VerifyNotClosing()
   在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
   在 System.Windows.Application.DoShutdown()
   在 System.Windows.Application.ShutdownImpl()
   在 System.Windows.Application.ShutdownCallback(Object arg)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

版本:1.43.68 2025-04-25 13:18 Microsoft Windows NT 6.1.7601 Service Pack 1
版本:1.44.3 2025-04-22 16:57 Microsoft Windows NT 10.0.19045.0
报错信息 3
InvalidOperationException: 在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。
StackTrace:
   在 System.Windows.Window.VerifyNotClosing()
   在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
   在 System.ComponentModel.CancelEventHandler.Invoke(Object sender, CancelEventArgs e)
   在 System.Windows.Window.OnClosing(CancelEventArgs e)
   在 System.Windows.Window.WmClose()
   在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

版本:1.43.68 2025-04-16 22:31 Microsoft Windows NT 10.0.26100.0
报错信息 4
InvalidOperationException: 在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。
StackTrace:
   在 System.Windows.Window.VerifyNotClosing()
   在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
   在 Quicker.View.WaitUserWindow.IL1osa3AjfaxSbDLFZZM(Object )
   在 Quicker.View.WaitUserWindow.wPil6Sa7S3b(Object  , EventArgs  )
   在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

版本:1.43.66 2025-04-16 22:09 Microsoft Windows NT 10.0.19045.0
报错信息 5
InvalidOperationException: 在 Window 关闭时,无法将 Visibility 设置为 Visible,也无法调用 Show、ShowDialog、Close 或 WindowInteropHelper.EnsureHandle。
StackTrace:
   在 System.Windows.Window.VerifyNotClosing()
   在 System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
   在 DynamicClass.<>c__DisplayClass1.<OnWindowCreated>b__0(Object sender, CancelEventArgs e)
   在 System.Windows.Window.OnClosing(CancelEventArgs e)
   在 System.Windows.Window.WmClose()
   在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

版本:1.43.65 2025-04-02 23:50 Microsoft Windows NT 10.0.26100.0