How to send data to server inside a Thread

Hi!

I m using some thread to send message to server… Many times happen that i got size length error.
I read that i Need to clone message…It Is correct? Can you explain me how use clone message inside a thread? There Is some testcase or example?
Thanks
Alessandro

Hi,

Yes, it is correct. Messages aren’t thread-safe
you can clone message like

clone := (Message as IROMessageCloneable).Clone;