Usually when you see this kind of behaviour what you want to do is either run your program under valgrind/Dr.Memory/etc ... or recompile with address sanitizer.(*) Now to the peculiar behaviour: when I comment the unused local variable FOOBAR_1 (so it is not in the process() function anymore), the VST instrument stops outputting MIDI noteOn events, or at least I'm not receiving any MIDI noteOn events in Cubase.
Completely non-sensical bugs (happens sometimes randomly, irrelevant code changes behaviour, release vs. debug changes behaviour) have reasonable probability of being memory errors and often those are somewhere else in your code base. It could be in the misbehaving function, but it could equally well be anywhere else.
Statistics: Posted by mystran — Sat May 18, 2024 7:49 pm