InvalidOperationException: 调用线程无法访问此对象,因为另一个线程拥有该对象。 StackTrace: 在 System.Windows.Threading.Dispatcher.VerifyAccess() 在 System.Windows.DependencyObject.GetValue(DependencyProperty dp) 在 System.Windows.NameScope.GetNameScope(DependencyObject dependencyObject) 在 System.Windows.NameScope.NameScopeFromObject(Object obj) 在 System.Windows.FrameworkElement.FindScope(DependencyObject d, DependencyObject& scopeOwner) 在 DynamicClass.RunFFmpeg(Window win, String args, Double durationSec, String& errorOut) 在 DynamicClass.<>c__DisplayClass7.<StartProcessing>b__4(Object param0) 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() 在 System.Threading.ThreadPoolWorkQueue.Dispatch()