Forum Discussion
MMDevApi.dll bug report (Windows 11 24H2)
My 2 cents:
I have exactly the same problem with another application:
Faulting module name: MMDevApi.dll, version: 10.0.26100.1882, time stamp: 0xbe6f88f4
Exception code: 0xc0000005
Fault offset: 0x0002564d
It happens with win32 application registering IMMNotificationClient. The same code compiled for win64 is OK.
Simple code similar to this: https://learn.microsoft.com/en-us/windows/win32/coreaudio/device-events is anough to reproduce the problem.
I also observed that playing some sound with "Windows Media Player Legacy" (which is 32 bit) or another 32 bit media player before running the faulty program overcomes the MMDevApi crash and it works if you are not changing devices (or there is nothing happening in the system that tries to notify registered IMMNotificationClient).