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

报错信息 1
InvalidOperationException: 调用线程无法访问此对象,因为另一个线程拥有该对象。
StackTrace:
   在 System.Windows.Threading.Dispatcher.VerifyAccess()
   在 System.Windows.DependencyObject.GetValue(DependencyProperty dp)
   在 DynamicClass.剪贴板数据项.处理内容变化()
   在 DynamicClass.剪贴板数据项.set_内容(String value)
   在 DynamicClass.剪贴板数据库.获取图片数据()
   在 DynamicClass.MainViewModel.<<执行所有图片>b__2b>d__30.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 DynamicClass.MainViewModel.<执行所有图片>d__33.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.44.23 2025-11-18 09:14 Microsoft Windows NT 10.0.22621.0
报错信息 2
InvalidOperationException: 调用线程无法访问此对象,因为另一个线程拥有该对象。
StackTrace:
   在 System.Windows.Threading.Dispatcher.VerifyAccess()
   在 System.Windows.Media.PathFigureCollection.OnInheritanceContextChangedCore(EventArgs args)
   在 System.Windows.DependencyObject.OnInheritanceContextChanged(EventArgs args)
   在 System.Windows.Freezable.AddInheritanceContext(DependencyObject context, DependencyProperty property)
   在 System.Windows.DependencyObject.ProvideSelfAsInheritanceContext(DependencyObject doValue, DependencyProperty dp)
   在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   在 System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   在 System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   在 DynamicClass.CircularWindow.CreateButton(ButtonDisplayInfo buttonInfo)
   在 DynamicClass.CircularWindow.RenderNextBatch(Object sender, EventArgs e)
   在 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.44.22 2025-11-12 21:58 Microsoft Windows NT 10.0.19045.0