Article View: borland.public.cppbuilder.internet.socket
Article #3921Re: EldReadTimeOut Process Stopped
From: Remy Lebeau (TeamB)
Date: Thu, 26 May 2005 16:44
Date: Thu, 26 May 2005 16:44
27 lines
1681 bytes
1681 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message
news:4295b153@newsgroups.borland.com...
> AnsiString A = Net1->Client1->CurrentReadBuffer();
> if (A.Length() > 0)
> {
> Data = Net1->Client1->ReadLn();
Why are you reading all of the incoming data, discarding it, and then
reading a new line? Shouldn't you be displaying the data you already
received?
void __fastcall TTcpClientReader::Execute()
{
while( Net1->Client1->Connected() )
{
Data = Net1->Client1->CurrentReadBuffer();
if( Data.Length() > 0 )
Synchronize(UpdateCaption);
}
else
Sleep(25);
}
Gambit
Technical Details
Message-ID:
<4295fd62$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4295b153@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e433419ab121c6a5 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: <4295b153@newsgroups.borland.com> Subject: Re: EldReadTimeOut Process Stopped Date: Thu, 26 May 2005 09:44:31 -0700 Lines: 29 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: 68.69.17.41 Message-ID: <4295fd62$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1117125986 68.69.17.41 (26 May 2005 09:46:26 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail