This message was issued because a function that requires an argument that is a locator (a reference to a BYTE or TEXT value) received something other than a valid locator (such as a NULL parameter, or an argument of any other data type).
Review the program logic to make sure the arguments are correct.