getErrorString does not stop CHOP execute

Hello!

I am developing a custom timesliced CHOP operator, but I am not able to stop the operator when an error occurs. The documentation says:

//You can use this function to put the node into a error state
// by calling setString() on 'error' with a non empty string.

getErrorString(OP_String *error, void *reserved1) 

I managed to put the CHOP in an error state, but it continues to cook, hence it keeps producing the error.
What could I do?

Thanks!

ddgg

It won’t stop cooking when it’s in error, since it needs to be able to re-check if it should clear the error. If you just make the execute return quickly, then the cook time will be small.

It make sense. Thank you @malcom.
May I take this chance to ask you something? if we take as example the AudioFilterCHOP, indeed I see that it keeps cooking even if nothing is connected to it, i.e. it’s in error.

But if I look at the info:

Start/End does not change, while in my CHOP these values are updated while in error. What does it mean? Or maybe more important, is it relevant?

thank you very much

Different nodes may handle error states a bit differently. It doesn’t mean anything really, should be fine.