The error string returned (if any) is:
Function argument value, type, or count is invalid. write(2059)