I’m getting the most perplexing crash, and I would appreciate any suggestions about how to start debugging this.
I’m getting a crash in the following method:
void AudioProcessorGraph::processAudio (AudioBuffer& buffer, MidiBuffer& midiMessages)
the reason for the crash is that AudioProcessorGraph::audioBuffers.object points to some bad memory. but the mystery is this:
the address of AudioProcessorGraph::audioBuffers (i.e., &audioBuffers) changes when we go into the processAudio method.
so the address of &audioBuffers in AudioProcessorGraph::processBlock is one thing, and audioBuffers.object points an actual AudioProcessorGraphBufferHelpers object. then as soon as we go into AudioProcessorGraph::processAudio, &audioBuffers is incorrect, so of course audioBuffers.object is pointing at some random place.
‘this’ has the same address in both methods, so I don’t understand how any of this is possible.
note that this is only a problem with the release build. thanks in advance for your help!