Article View: borland.public.cppbuilder.internet.socket
Article #1177Re: atozedsoftware.indy.servers.tcp
From: column.column
Date: Tue, 24 Apr 2007 11:24
Date: Tue, 24 Apr 2007 11:24
36 lines
1503 bytes
1503 bytes
> No, because using a critical section like that is not enough to ensure
> thread safety with the main thread, especially if UI components are
> involved.
What is UI component?
> Use the TIdSync class instead.
>
I have no experience with this class. How to use it in my case? For example
I would like to log events:
procedure Tinterf_TCP.Logit(info:string);
begin
.........
end;
procedure Tinterf_TCP.AserverSocketConnect(AContext: TIdContext);
begin
.........
Logit('connect')
end;
Technical Details
Message-ID:
<462de8f0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<462dcb2f$1@newsgroups.borland.com> <462dd17f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cc808cb7ddb07b02 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: <column.column@gmail.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <462dcb2f$1@newsgroups.borland.com> <462dd17f$1@newsgroups.borland.com> Subject: Re: atozedsoftware.indy.servers.tcp Date: Tue, 24 Apr 2007 14:24:29 +0300 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 82.135.244.123 Message-ID: <462de8f0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177413872 82.135.244.123 (24 Apr 2007 04:24:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail