queueMessage.Format = MQC.MQFMT_STRING;
queuePutMessageOptions = new MQPutMessageOptions();
queue.Put(queueMessage, queuePutMessageOptions);
This code works fine and puts the messages on the queue, but somehow the message length becomes double. When I see this message on the Mainframe screen the message is dispalyed, but after the complete message there are (.) dots. So I guess all these dots and my original message sums up to become double the original message length.
When I put a Messagebox to check the message length after the stathement "queueMessage.WriteString(strInputMsg);". That is the place where the lenght becomes double.
Any idea what could be the cause? _________________ Regards,
Parag Dhande
Posted: Wed Jul 28, 2010 4:06 am Post subject: Re: .NET - Queue Message Length gets doubled
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
Prem wrote:
Any idea what could be the cause?
You need to search the forum for previous discussions on string handling within .NET with particular reference to where & when it uses single or double byte character sets. You're not the first to travel this path. _________________ Honesty is the best policy.
Insanity is the best defence.
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