I noticed that once I read some values from an AudioEndpointVolume, my application would crash when I changed the volume manually afterwards. After some searching, I traced the problem to AudioEndpointVolumeCallback where OnNotify gets called when the volume changes.
In this method Marshal.PtrToStructure is used, which causes an access violation, causing the crash.
I'm running Win7 x64 and the latest Naudio (b3a412ad55a8)
Comments: My bad, the violation is not caused by C#, as far as I can tell. Can anyone reproduce this problem?
In this method Marshal.PtrToStructure is used, which causes an access violation, causing the crash.
I'm running Win7 x64 and the latest Naudio (b3a412ad55a8)
Comments: My bad, the violation is not caused by C#, as far as I can tell. Can anyone reproduce this problem?