Exception:句柄无效。

报错信息 1
IOException: 句柄无效。

StackTrace:
   在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   在 System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
   在 System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
   在 NAudio.Wave.WaveFileWriter.UpdateRiffChunk(BinaryWriter writer)
   在 NAudio.Wave.WaveFileWriter.UpdateHeader(BinaryWriter writer)
   在 NAudio.Wave.WaveFileWriter.Dispose(Boolean disposing)
   在 System.IO.Stream.Close()
   在 HgZLUkSSH7gmq09l8On.z4fcXXSrieYkySvmRM3.<>c__DisplayClass57_0.hlF8GN5k6ve(Object s, StoppedEventArgs a)
   在 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()

版本:1.44.3 2025-04-28 15:53 Microsoft Windows NT 10.0.26100.0
报错信息 2
IOException: 句柄无效。

StackTrace:
   在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   在 System.Threading.EventWaitHandle.Set()
   在 System.Windows.Threading.DispatcherOperation.DispatcherOperationEvent.OnCompletedOrAborted(Object sender, EventArgs e)
   在 System.Windows.Threading.DispatcherOperation.Invoke()
   在 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)

版本:1.43.57 2025-04-17 10:46 Microsoft Windows NT 10.0.22621.0
报错信息 3
IOException
   在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   在 System.Threading.EventWaitHandle.Set()
   在 System.Windows.Threading.DispatcherOperation.DispatcherOperationEvent.OnCompletedOrAborted(Object sender, EventArgs e)
   在 System.Windows.Threading.DispatcherOperation.Invoke()
   在 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)
版本:1.35.42 2025-04-11 15:05 Microsoft Windows NT 10.0.19041.0
报错信息 4
IOException
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Threading.EventWaitHandle.Set()
   at System.Windows.Threading.DispatcherOperation.DispatcherOperationEvent.OnCompletedOrAborted(Object sender, EventArgs e)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
版本:1.36.32 2025-04-08 15:51 Microsoft Windows NT 6.1.7601 Service Pack 1