PVST crash in my test VST
Posted: Sun Oct 02, 2022 2:30 pm
i have a very simple vst (2.4) with one parameter. it mostly works, but:
if i change the parameter value from the buzz parameter gui or from pxp, PVST crashes with a null reference exception.
changing the parameter value in pvst's built-in parameter gui works.
unfortunately i don't get a proper stack trace when it crashes so i have no idea what is null.
what could be the problem?
the plugin only relies on the C API btw, so no AudioEffect/AudioEffectX classes, but that should not matter.
attached: the test vst.
edit: tried it on another machine with b34, it worked, then updated to b40: crashes.
EDIT: looks like i found the issue: it happens when numPrograms is set to 0, is a VST supposed to always have at least 1 or is this a bug?
if i change the parameter value from the buzz parameter gui or from pxp, PVST crashes with a null reference exception.
changing the parameter value in pvst's built-in parameter gui works.
unfortunately i don't get a proper stack trace when it crashes so i have no idea what is null.
what could be the problem?
the plugin only relies on the C API btw, so no AudioEffect/AudioEffectX classes, but that should not matter.
attached: the test vst.
edit: tried it on another machine with b34, it worked, then updated to b40: crashes.
EDIT: looks like i found the issue: it happens when numPrograms is set to 0, is a VST supposed to always have at least 1 or is this a bug?