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 Discussion » useEmptyBuffer question

Post new topic  Reply to topic
 useEmptyBuffer question « View previous topic :: View next topic » 
Author Message
starfish77
PostPosted: Tue Dec 02, 2003 7:32 am    Post subject: useEmptyBuffer question Reply with quote

Apprentice

Joined: 07 Nov 2003
Posts: 31
Location: USA

I am using this system managed buffer call for request message
MsgRequest.useEmptyBuffer( NULL, 0 );
Is there any way i can initialize it to NULL. Somehow, system is using same buffer again and again without clearing it..
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Dec 03, 2003 11:45 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

This doesn't look right to me. I thought you were supposed to specify a pointer and a length. With the "NULL, 0", I imagine that nothing is being done.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
starfish77
PostPosted: Wed Dec 03, 2003 11:49 am    Post subject: Reply with quote

Apprentice

Joined: 07 Nov 2003
Posts: 31
Location: USA

NULL and 0 asks to use the systme managed buffer than the extrenal. This is what they say in the documentation of useEmptyBuffer function..

[quote]
ImqBoolean useEmptyBuffer( const char * external-buffer, const size_t length );
Identifies an empty user buffer, setting the buffer pointer to point to
external-buffer, the buffer length to length, and the message length to zero.
Performs a clearMessage. If the buffer is fully primed with data, use the
useFullBuffer method instead. If the buffer is partially primed with data,
use the setMessageLength method to indicate the correct amount. This
method returns TRUE if successful.
This method can be used to identify a fixed amount of memory, as
described above (external-buffer is not null and length is nonzero), in which
case automatic buffer is set to FALSE, or it can be used to revert to
system-managed flexible memory (external-buffer is null and length is zero),
in which case automatic buffer is set to TRUE.
[/quote]
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 Discussion » useEmptyBuffer question
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.