It looks like it is trying to set the value of filletrad and for whatever reason, it is failing.
There is no error handler defined in this code so I can only presume that the error handler was written for another program and it was never cleaned up by the calling function. If this is the case, the variable that the error handler is trying to set to filletrad would likely be either not set or set to a data type not allowed.