AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。 在 System.Threading.Tasks.Task.ContingentProperties.SetCompleted() 在 System.Threading.Tasks.Task`1.TrySetResult(TResult result) 在 System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result) 在 System.Threading.Tasks.TaskCompletionSource`1.SetResult(TResult result) 在 System.Windows.Threading.Dispatcher.ProcessQueue() 在 System.Windows.Threading.Dispatcher.WndProcHook(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)