Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Indy 10 TIdIRC component problems.
| Subject: | Re: Indy 10 TIdIRC component problems. |
| Posted by: | "Unspoken" (ff_aa_cc_ee_..@wp.pl) |
| Date: | Sat, 9 Feb 2008 14:00:45 |
> Your code is not thread-safe. All inbound commands are received and
> processed in the context of a worker thread that TIdIRC runs internally.
> You can't directly access the UI safely from that thread (or any thread,
> for that matter). You will have to synchronize with the main thread, such
> as via the TIdSync or TIdNotify class, in order to update your UI
> correctly.
>
Thanks Remy for the patience in helping me on this.. :) I've never worked
with threads before (read the theory tho).
Could you provide me a brief example how to solve this or... where I can
find a Indy demo showing how to handle such issues?
Regards :)