Article View: borland.public.cppbuilder.internet.socket
Article #357Re: indy question
From: Remy Lebeau (TeamB)
Date: Mon, 24 Mar 2008 16:31
Date: Mon, 24 Mar 2008 16:31
26 lines
1800 bytes
1800 bytes
"bar" <shaikakbar250281@yahoo.co.in> wrote in message news:47e547f8@newsgroups.borland.com... > Application->ProcessMessages(); > this->Update(); Rather than doing that in each event handler, put a separate TIdAntiFreeze component onto the TForm instead. > 1.When the server is busy it is waiting for something 10-15 > seconds and then raising the exception. That is normal. The only thing you can do about that is to set the ReadTimeout property. > 2.And some times the form is freezing and form is not responding. Because there are no event handlers being triggered yet so your code can call Application->ProcessMessages(). All the more reason for you to use the TIdAntiFreeze component instead. Indy calls into that internally during blocking operations, so it will be able to call ProcessMessages() more often then your own code is able to. Gambit
Technical Details
Message-ID:
<47e7d78e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<47e547f8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2ee1e8f11ef880ab X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <47e547f8@newsgroups.borland.com> Subject: Re: indy question Date: Mon, 24 Mar 2008 09:31:15 -0700 Lines: 28 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <47e7d78e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1206376334 207.178.157.90 (24 Mar 2008 09:32:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail