|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
useEmptyBuffer question |
« View previous topic :: View next topic » |
Author |
Message
|
starfish77 |
Posted: Tue Dec 02, 2003 7:32 am Post subject: useEmptyBuffer question |
|
|
 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 |
|
 |
bower5932 |
Posted: Wed Dec 03, 2003 11:45 am Post subject: |
|
|
 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 |
|
 |
starfish77 |
Posted: Wed Dec 03, 2003 11:49 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|