AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
StackTrace:
在 System.Windows.Media.VisualCollection.get_Item(Int32 index)
在 System.Windows.Controls.UIElementCollection.get_Item(Int32 index)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel)
在 System.Windows.Media.CompositionTarget.SetRootVisual(Visual visual)
在 System.Windows.Media.CompositionTarget.set_RootVisual(Visual value)
在 System.Windows.Interop.HwndTarget.set_RootVisual(Visual value)
在 System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
在 System.Windows.Window.SourceWindowHelper.ClearRootVisual()
在 System.Windows.Window.CloseWindowFromWmClose()
在 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)