Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: TidUDPServer question
| Subject: | Re: TidUDPServer question |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Fri, 2 Jun 2006 15:51:55 |
"Jamie Dale" <j.dale@turboz.net> wrote in message
news:4480b6fa@newsgroups.borland.com...
> YEs I had thought about that previously however lucky for me my
> server would typically have only myself connected. Then I came up
> with another way around it: Stick the string into a dynamic array and
> let the timer read them one by one ;)
That is still not thread-safe without a locking mechanism around it.
Accessing an unprotected dynamic array of unprotected dynamic strings is
worse then just accessing an unprotected dynamic string directly.
Gambit