Exception:调用线程无法访问此对象,因为另一个线程拥有该对象。

报错信息 1
InvalidOperationException: 调用线程无法访问此对象,因为另一个线程拥有该对象。
StackTrace:
   在 System.Windows.Threading.Dispatcher.VerifyAccess()
   在 MS.Internal.Media.VisualTreeUtils.AsVisual(DependencyObject element, Visual& visual, Visual3D& visual3D)
   在 System.Windows.Media.VisualTreeHelper.GetParent(DependencyObject reference)
   在 System.Windows.UIElement.GetUIParentWithinLayoutIsland()
   在 System.Windows.ContextLayoutManager.LayoutQueue.Add(UIElement e)
   在 System.Windows.UIElement.InvalidateArrange()
   在 System.Windows.Controls.ScrollViewer.EnqueueCommand(Commands code, Double param, MakeVisibleParams mvp)
   在 System.Windows.Controls.ScrollViewer.ScrollToEnd()
   在 DynamicClass.<>c__DisplayClass42.<<SendAsyncRequest>b__3e>d__44.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 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.42.32 2024-04-21 08:30 Microsoft Windows NT 10.0.19045.0