Exception:无法访问已释放的对象。 对象名:“webView”。

报错信息 1
ObjectDisposedException: 无法访问已释放的对象。
对象名:“webView”。
--Message: 无法访问已释放的对象。
对象名:“webView”。
--ObjectName: webView
StackTrace:
   在 Microsoft.Web.WebView2.Wpf.WebView2Base.VerifyNotDisposed()
   在 Microsoft.Web.WebView2.Wpf.WebView2Base.get_CoreWebView2()
   在 Microsoft.Web.WebView2.Wpf.WebView2Base.VerifyCoreWebView2()
   在 Microsoft.Web.WebView2.Wpf.WebView2Base.Stop()
   在 DynamicClass.<OnWindowCreated>b__2(Object sender, CancelEventArgs e)
   在 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.45.0 2026-02-26 15:02 Microsoft Windows NT 10.0.19045.0