Exception:调用方法时发生错误。 目标线程不再存在。

报错信息 1
InvalidAsynchronousStateException
   在 System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle)
   在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   在 System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   在 System.Diagnostics.DataReceivedEventHandler.Invoke(Object sender, DataReceivedEventArgs e)
   在 System.Diagnostics.Process.ErrorReadNotifyUser(String data)
   在 System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
   在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
   在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
   在 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.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
   在 System.Threading.Tasks.Task.FinishContinuations()
   在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
   在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()
版本:1.37.12 2023-03-13 17:55 Microsoft Windows NT 10.0.19045.0
报错信息 2
InvalidAsynchronousStateException
   在 System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle)
   在 System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   在 System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   在 System.Diagnostics.Process.ErrorReadNotifyUser(String data)
   在 System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
   在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
   在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
   在 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.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
   在 System.Threading.Tasks.Task.FinishContinuations()
   在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
   在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   在 System.Threading.ThreadPoolWorkQueue.Dispatch()
版本:1.35.42 2023-03-11 20:48 Microsoft Windows NT 10.0.22621.0