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 » IBM MQ API Support » .NET MQSeries 2080 error

Post new topic  Reply to topic
 .NET MQSeries 2080 error « View previous topic :: View next topic » 
Author Message
wfudeac92
PostPosted: Fri May 05, 2006 5:12 am    Post subject: .NET MQSeries 2080 error Reply with quote

Novice

Joined: 24 Apr 2006
Posts: 21

I am converting some old VB 6.0 code that uses the 5.3 client. There is some convoluted code in there to handle a 2080 error on a MQGET where the buffer is resized. Will the following line of code get me around that problem using the .NET MQ library and the 6.0 client?

mqMessageReply.ReadString(mqMessageReply.DataLength);
Back to top
View user's profile Send private message
tleichen
PostPosted: Mon May 08, 2006 11:12 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

If the length of the actual data exceeds DataLength, then you will still get the 2080 error. You need to either reallocate the buffer to the proper size, or do the get with the option turned on to truncate the message at the allotted buffer size.
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
Leigh Kendall
PostPosted: Wed May 10, 2006 7:03 am    Post subject: Reply with quote

Acolyte

Joined: 10 Apr 2003
Posts: 66
Location: Hartford, CT

Try using MessageLength instead...
_________________
Leigh Kendall
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 » IBM MQ API Support » .NET MQSeries 2080 error
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.