Not sure what this error really means or how memory management works at all, I’ve just been playing with some DSP algorithms and ran into this problem. The issue is in the process() function of a delay class I wrote, which works fine when used normally but when trying to use it inside a chorus class (to make the chorus effect) it throws this exception. Anyway if you have any advice that would be much appreciated.
//get a pointer to the circular buffer
float* buff = m_buffer.getWritePointer(0);
//read the input, xn, from the incoming sample
float xn = in;
//read the output, yn, from the circular buffer at the read position
float yn1 = buff[m_indexRead1];
float yn2 = buff[m_indexRead2];
The exception happens at the float yn1 = buff[m_indexRead1]; line.