The 64-bit AudioPluginHost is able to run 32-bit jbridged versions of the MIDILogger and DSPModulePluginDemo with crashing. 32-bit Surge 1.6.0 and FabFilter Pro-Q 1.23 (both non-JUCE plugins) also work correctly. I can stick a breakpoint in getSpeakerArrangementWrapper and see that result.in and result.out both (appear to) point to non-garbage VstSpeakerArrangement instances when the dispatchResult is not 0.
Please can you provide some examples of 32-bit plugins which cause a crash? Can you also confirm that the same plugins work as expected when bridged to non-JUCE 64-bit hosts?
It crashing on the nonsense pointer value in results.
If SpeakerArrangements has a constructor that initializes the pointers to nullptr then it doesn’t crash. In VS2019 I think it just happens to be luck that the pointers are initialized with nullptr.
Thanks, I can trigger a crash if I initialise the SpeakerArrangements with non-null pointers. Forcing the pointers to be initialised to null fixes the issue, as you said, so I’ll push that change.