Hi All,
I’m debugging a plugin which connects to a MIDI device on Windows. I found that the plugin fails to connect in Ableton Live 11 Suite. After some digging I found that there was an exception being thrown:
Exception thrown at 0x00007FFCE11A567C in Ableton Live 11 Suite.exe: Microsoft C++ exception: std::runtime_error at memory location 0x000000000014F0C0.
It seems like the exception is coming from juce::Win32MidiService::Win32InputWrapper
:
if (err != MMSYSERR_NOERROR)
throw std::runtime_error ("Failed to create Windows input device wrapper");```
The REALLY weird part is that I’m almost certain I’m running Ableton in 64 bit because 1) It only recognizes the plugins built for x64, and 2)that’s the only version of Live 11 available for download from Ableton’s website:
But, the debug output I get from attaching the Visual Studio Debugger seems to indicate that Ableton is running a Win32 build:
My current hypothesis is that somehow the plugin thinks that Ableton is running as a Win32 application, tries to create the Win32 wrapper, and then fails because the application is actually 64bit.
Any/all help getting this to correctly recognize the x64 applicaiton is greatly greatly appreciated!!!