Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: unhandled exception

$
0
0

Hi Mark

further to my last message about my program using WASAPI, my program seems to crash at random, maybe once or twice a day and the following error appears in the event log:

Application: AVR Audio Switch Fix.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
Stack:
   at System.IO.UnmanagedMemoryStream.Read(Byte[], Int32, Int32)
   at NAudio.Wave.WaveFileReader.Read(Byte[], Int32, Int32)
   at NAudio.Wave.SampleProviders.Mono16SampleChunkConverter.LoadNextChunk(NAudio.Wave.IWaveProvider, Int32)
   at NAudio.Wave.WaveChannel32.Read(Byte[], Int32, Int32)
   at NAudio.Wave.ResamplerDmoStream.Read(Byte[], Int32, Int32)
   at NAudio.Wave.WasapiOut.FillBuffer(NAudio.Wave.IWaveProvider, Int32)
   at NAudio.Wave.WasapiOut.PlayThread()
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

 

i'm using a non targeted "catch" command but it's not being caught, and even with a specific catch command for system.argumentexception it still crashes. Can you tell from this why it's crashing?

Thanks

Marc


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>