Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Null Pointer error in VST3 for 0 inputs #63

Open
apmcleod opened this issue Oct 4, 2016 · 0 comments
Open

Null Pointer error in VST3 for 0 inputs #63

apmcleod opened this issue Oct 4, 2016 · 0 comments

Comments

@apmcleod
Copy link

apmcleod commented Oct 4, 2016

I found this error on Windows 64-bit when working through the tutorial (the MIDI synthesis bit), in the file WDL/IPlug/IPlugVST3.cpp line 278.

This occurred when running the VST3 in the Steinberg VST3 Test Host 64 bit. I have all up-to-date SDKs I believe.

The inputs parameter is passed in as NULL when the plugin requests 0 inputs.

Changing line 278 to

int32 reqNumInputChannels = SpeakerArr::getChannelCount(inputs == NULL ? 0 : inputs[0]);

solved this problem for me. I'm not sure if this NULL check will break anything else, or if anyone else is having this problem, but it has fixed it for me. (I also similarly changed the next line for outputs to be safe)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant