Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Aug : Help with IdTCPServer
| Subject: | Help with IdTCPServer |
| Posted by: | "Rodrigo Schiavo" (rodrigo.schia..@sti.ind.br) |
| Date: | Thu, 25 Aug 2005 11:25:43 |
Hello, i'm new in Borland NewsGroup.
I'm a brazilian. I don't speak english very well, sorry.
I have in an application one ListBox with various items.
When a TCPClient send an string like 'START' the TCPServer need send a
first item form the ListBox, insert then into another ListBox and delete
then.
If have only one TCPClient connected on TCPServer the application work
fine, but if more TCPClients connect then TCPServer application raise
various exceptions, it occurs because the IdTCPServer create Threads for
TCPClients when it's connect, then exception occurs when a TCPClient try
to delete a Item from ListBox but it have been deleted for another
TCPClient in another Thread.
How I can solve this problem?
Anyone can help me please, or can send a small sample code?
I'm very grateful, and sorry for bad english.
[ ]'s Rodrigo Schiavo