I'm sure it's something I'm doing wrong, but I'm struggling to work out where to start looking. I have a plugin I'm working on that works fine as a VST2, but when I load it as a VST3 in the Juce Plugin Host and then launch the GUI, I get the following error:
Unhandled exception at 0x54AE2458 (ScopeSyncVST-Debug.vst3) in PluginHost.exe: 0xC0000005: Access violation reading location 0xFEEEFEEE.
The line of code it breaks at is in juce_Component.cpp:
void Component::setBounds (const int x, const int y, int w, int h)
{
...
if (showing)
{
if (wasResized)
repaint();
else if (! flags.hasHeavyweightPeerFlag)
repaintParent();
}
else if (cachedImage != nullptr)
{
>>> cachedImage->invalidateAll();
}
...
}
In case it's useful, here's the stack trace:
ScopeSyncVST-Debug.vst3!juce::Component::setBounds(int x, int y, int w, int h) Line 1182 C++
ScopeSyncVST-Debug.vst3!juce::Component::setBounds(const juce::Rectangle<int> & r) Line 1254 C++
ScopeSyncVST-Debug.vst3!juce::JuceVST3EditController::JuceVST3Editor::ContentWrapperComponent::resized() Line 478 C++
ScopeSyncVST-Debug.vst3!juce::Component::sendMovedResizedMessages(bool wasMoved, bool wasResized) Line 1209 C++
ScopeSyncVST-Debug.vst3!juce::Component::setBounds(int x, int y, int w, int h) Line 1191 C++
ScopeSyncVST-Debug.vst3!juce::Component::setSize(int w, int h) Line 1234 C++
ScopeSyncVST-Debug.vst3!juce::JuceVST3EditController::JuceVST3Editor::ContentWrapperComponent::resizeHostWindow() Line 495 C++
ScopeSyncVST-Debug.vst3!juce::JuceVST3EditController::JuceVST3Editor::attached(void * parent, const char * type) Line 365 C++
PluginHost.exe!00dd16d7() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for PluginHost.exe]
PluginHost.exe!00dd52e7() Unknown
PluginHost.exe!0107df1a() Unknown
PluginHost.exe!010100d2() Unknown
PluginHost.exe!01120de2() Unknown
PluginHost.exe!0113544b() Unknown
PluginHost.exe!00e70734() Unknown
PluginHost.exe!0127ae39() Unknown
PluginHost.exe!010df483() Unknown
PluginHost.exe!0111ff63() Unknown
PluginHost.exe!011255e4() Unknown
PluginHost.exe!012c4f0b() Unknown
[External Code]
PluginHost.exe!012c4f0b() Unknown
[External Code]
PluginHost.exe!00f0f913() Unknown
PluginHost.exe!00f14917() Unknown
PluginHost.exe!00f14886() Unknown
[External Code]
PluginHost.exe!01201353() Unknown
PluginHost.exe!01237079() Unknown
PluginHost.exe!011fc93d() Unknown
[External Code]
I'm building for 32bit, but on 64bit Windows 7, using VSE2013.



