Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: TidUDPServer question
| Subject: | Re: TidUDPServer question |
| Posted by: | "Jamie Dale" (j.da..@turboz.net) |
| Date: | Sat, 3 Jun 2006 00:40:48 |
>> 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.
>
You mean I need to rewrite my entire server?
Oh no...