2520 (09D8) (RC2520): MQRC_RES_OBJECT_STRING_ERROR
Explanation
On the MQOPEN or MQPUT1 call in the Object Descriptor MQOD, or on the MQSUB call in the
Subscription Descriptor MQSD the ResObjectString
field is not valid.
One of the following applies:
ResObjectString.VSLength
is greater than zero, butResObjectString.VSOffset
is zero andResObjectString.VSPtr
is the null pointer.ResObjectString.VSOffset
is nonzero andResObjectString.VSPtr
is not the null pointer (that is, it appears both fields are being used where only one is allowed).ResObjectString.VSPtr
is not a valid pointer.ResObjectString.VSOffset
orResObjectString.VSPtr
points to storage that is not accessible.ResObjectString.VSBufSize
is MQVS_USE_VSLENGTH and one ofResObjectString.VSOffset
orResObjectString.VSPtr
have been provided.
Completion code
MQCC_FAILED
Programmer response
Ensure that one of ResObjectString.VSOffset
or
ResObjectString.VSPtr
is zero and the other nonzero and that the buffer length is
provided in ResObjectString.VSBufSize
. Ensure that the field used points to
accessible storage.