NAudio
NAudio copied to clipboard
Application crash when starting recording
Hello! Sometimes I have a problem when starting the recording. Here's an exception:
System.AccessViolationException в NAudio.Wave.WaveInterop.waveInReset(IntPtr) в NAudio.Wave.WaveInEvent.CloseWaveInDevice() в NAudio.Wave.WaveInEvent.OpenWaveInDevice() в NAudio.Wave.WaveInEvent.StartRecording()
I'm having the same issue. It happends in an unexpected way.
Any solution or idea?
System.AccessViolationException en NAudio.Wave.WaveInterop.waveInPrepareHeader(IntPtr, NAudio.Wave.WaveHeader, Int32) en NAudio.Wave.WaveInBuffer.Reuse() en NAudio.Wave.WaveInEvent.DoRecording() en NAudio.Wave.WaveInEvent.RecordThread() en System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) en System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) en System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() en System.Threading.ThreadPoolWorkQueue.Dispatch()
Have same issue
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException at NAudio.Wave.WaveInterop.waveInReset(IntPtr) at NAudio.Wave.WaveInEvent.CloseWaveInDevice() at NAudio.Wave.WaveInEvent.Dispose(Boolean)
Does anyone know how to fix this?
Hard to track this kind of thing down without being able to reproduce it. What sound card are you using, and what version of Windows and version of .NET?
I'm having the same issue. It happends in an unexpected way.
Any solution or idea?
System.AccessViolationException en NAudio.Wave.WaveInterop.waveInPrepareHeader(IntPtr, NAudio.Wave.WaveHeader, Int32) en NAudio.Wave.WaveInBuffer.Reuse() en NAudio.Wave.WaveInEvent.DoRecording() en NAudio.Wave.WaveInEvent.RecordThread() en System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) en System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) en System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() en System.Threading.ThreadPoolWorkQueue.Dispatch()
I have the same exact issue, have you found a solution to this?