XEnableAccessControl can generate a BadAccess error. The XDisableAccessControl function disables the use of the access control list at each connection setup. XDisableAccessControl can generate a BadAccess error. The length member specifies the length of the address in bytes. The address member specifies a pointer to the address.
Some numeric value falls outside the range of values accepted by the request.
Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.