🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4729

Re: TIdHTTP OnWork

#4729
From: Remy Lebeau (TeamB)
Date: Tue, 21 Dec 2004 22:42
18 lines
1392 bytes
"Ted Tripp" <ttripp@rankexec.com> wrote in message
news:41c89ab7$1@newsgroups.borland.com...

> int nTotalBytes = 0;
>
> OnWork
> {
>     nTotalBytes += AWorkCount;
> }

AWorkCount is already the total accumlated amount of data that has been
transferred since OnWorkBegin.  You should be using the '=' operator instead
of the '+=' operator.  By using '+=', you are incrementing your variable too
much.


Gambit
Technical Details
Message-ID: <41c8a682$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41c89ab7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a208acfa73369e15
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: <41c89ab7$1@newsgroups.borland.com>
Subject: Re: TIdHTTP OnWork
Date: Tue, 21 Dec 2004 14:42:02 -0800
Lines: 20
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: <41c8a682$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1103668866 68.69.17.41 (21 Dec 2004 14:41:06 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail