Exception:尝试读取或写入受保护的内存。这通常指示其他内存已损坏。

报错信息 1
AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
StackTrace:
   在 System.Windows.Media.Composition.DUCE.UnsafeNativeMethods.WgxConnection_SameThreadPresent(IntPtr pConnection)
   在 System.Windows.Media.Renderer.Render(IntPtr pRenderTarget, Channel channel, Visual visual, Int32 width, Int32 height, Double dpiX, Double dpiY, Matrix worldTransform, Rect windowClip)
   在 System.Windows.Media.Imaging.BitmapVisualManager.Render(Visual visual, Matrix worldTransform, Rect windowClip)
   在 System.Windows.Media.Imaging.BitmapVisualManager.Render(Visual visual)
   在 MS.Internal.AppModel.IconHelper.GenerateBitmapSource(ImageSource img, Size renderSize)
   在 MS.Internal.AppModel.IconHelper.CreateIconHandleFromImageSource(ImageSource image, Size size)
   在 MS.Internal.AppModel.IconHelper.GetIconHandlesFromImageSource(ImageSource image, IconHandle& largeIconHandle, IconHandle& smallIconHandle)
   在 System.Windows.Window.UpdateIcon()
   在 System.Windows.Window._OnIconChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   在 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   在 System.Windows.DependencyObject.InvalidateSubProperty(DependencyProperty dp)
   在 System.Windows.Freezable.GetChangeHandlersAndInvalidateSubProperties(EventStorage& calledHandlers)
   在 System.Windows.Freezable.FireChanged()
   在 System.Windows.Media.Imaging.BitmapImage.OnDownloadCompleted(Object sender, EventArgs e)
   在 System.Windows.Media.UniqueEventHelper.InvokeEvents(Object sender, EventArgs args)
   在 System.Windows.Media.Imaging.LateBoundBitmapDecoder.DownloadCallback(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-06-01 22:04 Microsoft Windows NT 10.0.19045.0