Hey folks,
I'm building a C# application that uses a managed C++ DLL to handle all of the rendering & audio playback.
However after linking the C++ DLL to xaudio2.lib and initializing the IXaudio2 interface I get the following error when the C# application loads:
Which must be something to do with C# and xaudio2.
I handle the rendering of a C# Panel in C++ using DirectX (by passing through the window handle) so I'm already linking to d3d11.lib, and I can create the DirectX device & swap chain without any problems. If I comment out the code that handles the xaudio2 initialization the file load exception disappears.
This exception is occurring right as the C# application starts up, well before the hook I have in place to catch the Loaded event, so it's a little tricky to try and isolate.
Thanks!