Article View: borland.public.cppbuilder.internet.socket
Article #1176Re: atozedsoftware.indy.servers.tcp
From: Remy Lebeau (TeamB)
Date: Tue, 24 Apr 2007 09:42
Date: Tue, 24 Apr 2007 09:42
16 lines
1436 bytes
1436 bytes
<column@takas.lt> wrote in message news:462dcb2f$1@newsgroups.borland.com... > Is it good manner to synchronize TidTCPServer OnConnect, > onDisconnect and OnExecute events using critical section as following: 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. Use the TIdSync class instead. Gambit
Technical Details
Message-ID:
<462dd17f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!transit4.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<462dcb2f$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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <462dcb2f$1@newsgroups.borland.com> Subject: Re: atozedsoftware.indy.servers.tcp Date: Tue, 24 Apr 2007 02:42:34 -0700 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 x-mimeole: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.82.60.244 Message-ID: <462dd17f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177407871 75.82.60.244 (24 Apr 2007 02:44:31 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.251.MISMATCH!transit4.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail