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 » 8k limit on MQGET call?

Post new topic  Reply to topic
 8k limit on MQGET call? « View previous topic :: View next topic » 
Author Message
spguk
PostPosted: Tue Oct 22, 2002 2:56 am    Post subject: 8k limit on MQGET call? Reply with quote

Newbie

Joined: 22 Oct 2002
Posts: 3
Location: England

I'm developing an application in Delphi 6 which just needs to put and get messages from an MQseries server.
The messages are in an IDOC format for SAP, which means the messages are going to be quite big.
The problem I am encountering is getting messages off the queue. I can put on the queue without any problems, but when I use MQGet with a buffer size of 5000000 I only get the first 8124 characters off the list.
If I set the program up to check the bytes after this, it seems I get memory corruption.
If I put a 10k file on the queue and use the MQAPI tester program to get the data, the data is also truncated at exactly the same point.
Max file size on the MQseries is set to 4mb. Any ideas?
Back to top
View user's profile Send private message
bduncan
PostPosted: Tue Oct 22, 2002 11:29 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Which API are you using in Delphi? And which version of MQSeries are you using (CSD, patch level, platform, etc)?
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
spguk
PostPosted: Wed Oct 23, 2002 12:08 am    Post subject: Reply with quote

Newbie

Joined: 22 Oct 2002
Posts: 3
Location: England

I am using MQ 5.2.1 with the latest patch from this website for it, which I downloaded last night. I am also using the delphi files which are also on this site, having just tweaked them to run under a GUI window instead of DOS, and to throw exceptions where errors are raised, but other than that, I've not changed it.
After installing the latest patch for 5.2.1, I still get the same through the API exerciser, as that program also chops the file off at exactly the same point.
I have also tried running this under Windows XP pro and 2000 pro and I get exactly the same results.
The delphi files seem to be using mqm.dll for running the MQ commands.

Any more ideas?
Back to top
View user's profile Send private message
spguk
PostPosted: Wed Oct 23, 2002 3:02 am    Post subject: Reply with quote

Newbie

Joined: 22 Oct 2002
Posts: 3
Location: England

Sorted this problem out, it was the put procedure that was only posting 8k, as this buffer was set to 8k!! Thanks for the response anyway
At least now I have some fairly reliable source code that works in Delphi.
Back to top
View user's profile Send private message
nimconsult
PostPosted: Wed Oct 23, 2002 11:07 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

Also, the API exerciser truncates big messages (I do not remember the limit). This may be the reason why you had the same problem with it.
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » 8k limit on MQGET call?
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.