You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an app to play music using naudio, I get this System.AccessViolationException from time to time using ASIO. any idea what might be causing this or how can I at least prevent it from crashing my app?
CoreCLR Version: 8.0.123.58001 .NET Version: 8.0.1 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Stack: at NAudio.Wave.Asio.AsioSampleConvertor.ConvertorFloatToIntGeneric(IntPtr, IntPtr[], Int32, Int32) at NAudio.Wave.Asio.AsioDriverExt.BufferSwitchCallBack(Int32, Boolean)
The text was updated successfully, but these errors were encountered:
I have not worked with Asio before.
But perhaps there is some memory that is still referenced to in your own code. Like an array of bytes.
Perhaps copy the buffer with the sound to your own buffer before returning?
I have an app to play music using naudio, I get this System.AccessViolationException from time to time using ASIO. any idea what might be causing this or how can I at least prevent it from crashing my app?
CoreCLR Version: 8.0.123.58001 .NET Version: 8.0.1 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Stack: at NAudio.Wave.Asio.AsioSampleConvertor.ConvertorFloatToIntGeneric(IntPtr, IntPtr[], Int32, Int32) at NAudio.Wave.Asio.AsioDriverExt.BufferSwitchCallBack(Int32, Boolean)
The text was updated successfully, but these errors were encountered: