Thread: AU validation
View Single Post
Old 02-26-2017, 12:15 PM   #11
Tunca
Human being with feelings
 
Join Date: Apr 2016
Posts: 240
Default

Quote:
Originally Posted by random_id View Post
I typically run into problems like this when there is a meta parameter. Similar to the linked parameter, if you have any parameter that does something like 'reset to default', 'randomize settings', etc., this can cause problems with validation. Actually, anything that alters another parameter within OnParamChange() can have validation issues.

Many times, this is the cause of intermittent AU validation fails, because sometimes the parameter are reset and OK during validation, and sometimes not.

To test things, I would add this to every parameter
Code:
GetParam(param)->SetIsMeta(true)
See if that fixes the problems with other people validating the plugin.
Thanks for reply!

Actually i didn't give full versions.Gave demo version and demo versions resetting parameter after 2 min.

How can i add this code into my code?

Here is my parameter section...

Code:
void BRUTUS::Reset()
{
  TRACE;
  IMutexLock lock(this);
}

void BRUTUS::OnParamChange(int paramIdx)
{
  IMutexLock lock(this);

  switch (paramIdx)
  {
    case kThr:
      mThr = GetParam(kThr)->Value();
      break;
      
    case kOut:
      mOut = GetParam(kOut)->Value();
      break;

      
    default:
      break;
  }
}
Tunca is offline   Reply With Quote