2018 means the MQQueueManager instance being used in your application is invalid. There are number of reasons for throwing 2018.
Most of common is attempt to use MQQueueManager instance after Disconnect method has been called.
I am not sure which method call in your programming is throwing 2018. It would help if you could post actual code and point failing method call.
2018 错误意思是MQQueueManager 实例在你的应用里变的不可用, 有很多原因会抛出2018
最常见的是尝试使用MQQueueManager instance 在Disconnect 方法被调用后