Under load, I am getting an occasional AccessViolation in WDMAUD.DRV, and my application is crashing.
Comments: I haven't got a 'stand alone' piece of code that reproduces this issue yet - Still working on producing a smaller test harness that produces the same result. However, the stack trace from exception is as follows: 0:000> !pe Exception object: 00f8dbd4 Exception type: System.AccessViolationException Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. InnerException: <none> StackTrace (generated): SP IP Function 00000000 00000000 UNKNOWN!NAudio.Wave.WaveInterop.waveInAddBuffer(IntPtr, NAudio.Wave.WaveHeader, Int32)+0x1 0012F048 04AC4529 UNKNOWN!NAudio.Wave.WaveInBuffer.Reuse()+0x59 0012F05C 04AC4796 UNKNOWN!NAudio.Wave.WaveIn.Callback(IntPtr, WaveMessage, IntPtr, NAudio.Wave.WaveHeader, IntPtr)+0x96 0012F09C 04AC3CDB UNKNOWN!NAudio.Wave.WaveWindow.WndProc(System.Windows.Forms.Message ByRef)+0x5b 0012F0B8 7B5870F3 System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)+0x13 0012F0C0 7B587071 System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)+0x31 0012F0D4 7B586FB6 System_Windows_Forms_ni!System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)+0x96 0012F2AC 7B5971FF System_Windows_Forms_ni!System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)+0x287 0012F348 7B596E2C System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)+0x16c 0012F3A0 7B596C81 System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)+0x61 0012F3D0 7B52366D System_Windows_Forms_ni!System.Windows.Forms.Application.Run(System.Windows.Forms.Form)+0x31 0012F3E4 030F027A CallTouchWorkstation!Northgate.CallTouch.Rulebase.Program.Main(System.String[])+0x20a
Comments: I haven't got a 'stand alone' piece of code that reproduces this issue yet - Still working on producing a smaller test harness that produces the same result. However, the stack trace from exception is as follows: 0:000> !pe Exception object: 00f8dbd4 Exception type: System.AccessViolationException Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. InnerException: <none> StackTrace (generated): SP IP Function 00000000 00000000 UNKNOWN!NAudio.Wave.WaveInterop.waveInAddBuffer(IntPtr, NAudio.Wave.WaveHeader, Int32)+0x1 0012F048 04AC4529 UNKNOWN!NAudio.Wave.WaveInBuffer.Reuse()+0x59 0012F05C 04AC4796 UNKNOWN!NAudio.Wave.WaveIn.Callback(IntPtr, WaveMessage, IntPtr, NAudio.Wave.WaveHeader, IntPtr)+0x96 0012F09C 04AC3CDB UNKNOWN!NAudio.Wave.WaveWindow.WndProc(System.Windows.Forms.Message ByRef)+0x5b 0012F0B8 7B5870F3 System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)+0x13 0012F0C0 7B587071 System_Windows_Forms_ni!System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)+0x31 0012F0D4 7B586FB6 System_Windows_Forms_ni!System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)+0x96 0012F2AC 7B5971FF System_Windows_Forms_ni!System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)+0x287 0012F348 7B596E2C System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)+0x16c 0012F3A0 7B596C81 System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)+0x61 0012F3D0 7B52366D System_Windows_Forms_ni!System.Windows.Forms.Application.Run(System.Windows.Forms.Form)+0x31 0012F3E4 030F027A CallTouchWorkstation!Northgate.CallTouch.Rulebase.Program.Main(System.String[])+0x20a