Page 1 of 1

_messageComposer.IsLastSegment(data) always returns false

Posted: Tue Sep 22, 2015 10:17 am
by sreekala
Im trying to retrieve long message using following code

Code: Select all

 if (data.Concatenation != null)
                {
                    _messageComposer.AddMessage(data);

                    if (_messageComposer.IsLastSegment(data))
                    {
                        messageText = _messageComposer.GetFullMessage(data);
                        AddUILog("last segment" + messageText);
                    }
}
. But when i debug i always get (_messageComposer.IsLastSegment(data)) as false.. How can i retrieve full message?

Re: _messageComposer.IsLastSegment(data) always returns fals

Posted: Wed Sep 23, 2015 3:19 pm
by alt
Could you show trace file? what do you receive from server?
IsLastSegment is true only when all concatenated parts are received.
It can be that you receive wrong concatenation parameters.