
November 1st, 2009, 09:30 PM
|
|
Registered User
|
|
Join Date: Nov 2009
Posts: 1
Time spent in forums: 2 m 18 sec
Reputation Power: 0
|
|
|
Loosing data at appending to text box
I developed an application with 2 listening sockets and 2 textboxes. One textbox used to show incoming messages and other for outgoing messages. Application use Send method of sockets to send messages received by sockets connected to first listening socket to sockets connected to second listening socket. I use while loop to assure that all data are sent.
After a message is sent it is appended to outgoing messages textbox. When a message is appended to the message string is added a prefix. The problem is that the prefix sometimes disappeared in the displayed message. Also sometimes some messages are not sent. Can you provide an advice how to solce the problems?
|