How to send data to server inside a Thread

(Alessandro) #1

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

0 Likes

(EvgenyK) #2

Hi,

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

clone := (Message as IROMessageCloneable).Clone;
0 Likes