Under load, I am getting an occasional AccessViolation in WDMAUD.DRV, and my application is crashing.
Comments: Thanks for the extra info. That doesn't sound like it would load the computer heavily at all. Are you using the same WaveIn object for each recording, or creating a new one? Are any codecs involved in the process or are you writing PCM to the WAV file? One possible cause of these errors is the garbage collector moving something that shouldn't be moved. I feel fairly confident that all such instances have been found and fixed over the years in NAudio, but I guess it is possible that something which ought to be pinned isn't being.
Comments: Thanks for the extra info. That doesn't sound like it would load the computer heavily at all. Are you using the same WaveIn object for each recording, or creating a new one? Are any codecs involved in the process or are you writing PCM to the WAV file? One possible cause of these errors is the garbage collector moving something that shouldn't be moved. I feel fairly confident that all such instances have been found and fixed over the years in NAudio, but I guess it is possible that something which ought to be pinned isn't being.