FMOD_RESULT returns error 30(invalid handle) but everything seems to work

When I try to modify values in parameters FMOD_RESULT returns error 30 but the parameters seem to be applied properly and all effects seem to work, does anyone know why this could be?

provided is my function for setting parameters

and my function call


Error 30 is “ERR_INVALID_HANDLE”, the handle in this case is the pointer to the object (eg. event, parameter).

Which line/s are returning that error?