ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » MQRC_OD_ERROR 2044

Post new topic  Reply to topic
 MQRC_OD_ERROR 2044 « View previous topic :: View next topic » 
Author Message
knut.aarum
PostPosted: Sun Mar 17, 2013 3:24 am    Post subject: MQRC_OD_ERROR 2044 Reply with quote

Newbie

Joined: 17 Mar 2013
Posts: 1

Hi , I am trying go get a delphi program (delphi 10) to connect to MQ.
I rum MQCONN first, successfully , but when I try MQOPEN
I get MQRC_OD_ERROR 2044.

My record looks like this. The StrucID = 'OD ' and Version = 1
What am I doing wrong?

Best regards
Knut
TMQOD = record
StrucId : MQCHAR4; (* Structure identifier *)
Version : MQLONG; (* Structure version number *)
ObjectType : MQLONG; (* Object type *)
ObjectName : MQCHAR48; (* Object name *)
ObjectQMgrName : MQCHAR48; (* Object queue manager name *)
DynamicQName : MQCHAR48; (* Dynamic queue name *)
AlternateUserId : MQCHAR12; (* Alternate user identifier *)
RecsPresent : MQLONG; (* Number of object records
present *)
KnownDestCount : MQLONG; (* Number of local queues opened
successfully *)
UnknownDestCount : MQLONG; (* Number of remote queues opened
successfully *)
InvalidDestCount : MQLONG; (* Number of queues that failed to
open *)
ObjectRecOffset : MQLONG; (* Offset of first object record from
start of MQOD *)
ResponseRecOffset : MQLONG; (* Offset of first response record
from start of MQOD *)
ObjectRecPtr : MQPTR; (* Address of first object record *)
ResponseRecPtr : MQPTR; (* Address of first response
record *)
AlternateSecurityId : MQBYTE40; (* Alternate security identifier *)
ResolvedQName : MQCHAR48; (* Resolved queue name *)
ResolvedQMgrName : MQCHAR48; (* Resolved queue manager name *)
end;
PMQOD = ^TMQOD;
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Mar 17, 2013 4:10 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

I only see three characters in your StructID when their should be four.

I programmed MQ a long time ago using Delphi. There was even some sample code posted by someone else.

http://www.mqseries.net/phpBB2/viewtopic.php?t=39180

Take a look at it and you might find your problem.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQRC_OD_ERROR 2044
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.