This breakpoint happened while I was debugging using Reaper. can anyone explain where numSamples comes from and why is it 1176 !
There are three different asserts baked into that one line:
destStartSample >= 0
numSamples >= 0
destStartSample + numSamples <= size
Anyone of those three statements being false could trigger that assert.
Since you said numSamples was 1176, we can guess it’s either the first or third part.
But since you didn’t say what value destStartSample is, or what value size is, impossible to guess.
Also, impossible to guess where “numSamples” comes from, since the whole function isn’t shown.
Your debugger can. Look for the call stack and see what is calling that function and what value comes in as numSamples. Work your way backwards, until you find where the number was computed and why it isn’t what you expected it to be.
1 Like
this was what i needed, thanks!

