NAudio
NAudio copied to clipboard
AccessViolation in ASIO module
When opening an ASIO control panel twice, the second time it produces an access violation exception. It cannot be caught by Visual Studio, so I had to use windbg to get this information.
ModLoad: 00000001`80000000 00000001`80077000 C:\Program Files\M-Audio\Fast Track Pro\DeviceInterface.dll
ModLoad: 00000000`53860000 00000000`53929000 C:\WINDOWS\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.9680_none_88e394a52fab6222\MSVCR80.dll
ModLoad: 00000000`52860000 00000000`52969000 C:\WINDOWS\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.9680_none_88e394a52fab6222\MSVCP80.dll
ModLoad: 00000000`526c0000 00000000`5285b000 C:\WINDOWS\WinSxS\Fusion\amd64_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_none_758c8a477f89a995\8.0\8.0.50727.6195\MFC80U.DLL
ModLoad: 0000022b`bf870000 0000022b`bf87d000 C:\WINDOWS\WinSxS\Fusion\amd64_microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_none_eeb8165fbcb9c171\8.0\8.0.50727.6195\MFC80ENU.DLL
ModLoad: 0000022b`bf870000 0000022b`bf87d000 C:\WINDOWS\WinSxS\Fusion\amd64_microsoft.vc80.mfcloc_1fc8b3b9a1e18e3b_none_eeb8165fbcb9c171\8.0\8.0.50727.6195\MFC80ENU.DLL
(81a4.139c): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
MMDevAPI!CDeviceEnumerator::OnPropertyValueChanged+0x1d3:
00007ffa`d99e35e3 488b4038 mov rax,qword ptr [rax+38h] ds:00000000`00000038=????????????????
Call stack:
[0x0] MMDevAPI!CDeviceEnumerator::OnPropertyValueChanged + 0x1d3
[0x1] MMDevAPI!CLocalEndpointEnumerator::OnMediaNotification + 0x118
[0x2] MMDevAPI!CMediaNotifications::OnMediaNotificationWorkerHandler + 0x24e
[0x3] ntdll!TppSimplepExecuteCallback + 0xa3
[0x4] ntdll!TppWorkerThread + 0x8f6
[0x5] KERNEL32!BaseThreadInitThunk + 0x1d
[0x6] ntdll!RtlUserThreadStart + 0x28
Device: M-Audio Fast Track Pro with driver version 6.1.11 on Windows 11. NAudio version: 2.1.0
that looks like code in the WASAPI APIs rather than anything to do with ASIO. Are you using any other parts of NAudio?
I query all possible sources, including WASAPI. But I didn't use WASAPI for playback.