Open Vicharian opened 7 months ago
I'm looking into this issue and will post back when I find a solution.
For now, change the call to MMDeviceEnumerator
passing an empty Guid
as a parameter:
Like so:
var devEnum = new MMDeviceEnumerator(Guid.Empty);
I was able to find the problem. Please take a pull from the master branch and let me know if this version works for you as well.
Had this exception when using the Nuget package.
Downloaded the code from GitHub and ran the Forms.Framework sample and got the same error. Am running it in Framework 4.8.1, but read through another issue that just changing the targeting framework should work. Should mention that changing the selected device is working just fine. Only the volume has this problem.
System.AccessViolationException HResult=0x80004003 Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Source=
StackTrace: