+

Search Tips | Advanced Search

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, but ResObjectString.VSOffset is zero and ResObjectString.VSPtr is the null pointer.
  • ResObjectString.VSOffset is nonzero and ResObjectString.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 or ResObjectString.VSPtr points to storage that is not accessible.
  • ResObjectString.VSBufSize is MQVS_USE_VSLENGTH and one of ResObjectString.VSOffset or ResObjectString.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.

Parent topic: API reason codes

Last updated: 2020-10-04