Posted: Sun Jul 28, 2002 3:09 pm Post subject: Urgent Help, MQAX200.dll
Novice
Joined: 12 Aug 2001 Posts: 14
My application is running on Win2k using MQSeries ActiveX object (MQAX200.dll) connecting to Win2k MQ server v5.2. Both client and Server are applied csd004.
I am getting error whenI try to put message to the Q, the return code is different everytime (a big number 34234234 something like that, reason code is 0), and the error cause the application stop immediately if I try to trap the error event. Althought the MQPut function seems like fail, But the messge still appear in the Q.
The following is the VBScript I used to reproduce the problem.
gQMgrName = "QM1"
gQName = "Test"
set oSession = CreateObject("MQAX200.MQSession")
set oQM = oSession.AccessQueueManager(gQMgrName)
set oQ = oQM.AccessQueue(gQName, 16)
Call oQ.Open
set oMsg = oSession.AccessMessage
set oPMO = oSession.AccessPutMessageOptions
oMsg.MessageData = "Test messsage"
oPMO.Options = 4
on error resume next
oSession.ExceptionThreshold = 1
call oQ.Put(oMsg, oPMO)
msgbox err.description
msgbox oSession.ReasonCode & " -- " & oSession.ReasonName
When I check the NT event log, in the server I saw
Error on receive from host xxx.xx.xx.xx
An error occurred receiving data from xx.xxx.xx.xx over TCP/IP. This may be due to a commuication failure. The return code from the TCP/IP (recv) Call was 10054 (x2746). Record these values and tell the system administrator.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum