Article View: borland.public.cppbuilder.internet.socket
Article #1013Re: Need Assistance with the TIdFTP Component in BCB 2006...
From: Remy Lebeau (TeamB)
Date: Mon, 25 Jun 2007 14:31
Date: Mon, 25 Jun 2007 14:31
24 lines
1761 bytes
1761 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:9vnv73dl97vfkq2qqs8spvb1ermjvjkgsu@4ax.com... > Before uploading, you get the file size from the operating system. You do not need to do that for uploads. TIdFTP already knows the size of the file it is uploading, and provides that in the AWorkCountMax parameter of the OnWorkBegin event. > In the OnWork() member, you add each AWorkCount to your running total That is not correct. AWorkCount is already the total running count. Use it as-is. > use Synchronize() to update the label. TIdFTP is not a threaded component, so that is not necessary if it is already being used in the main thread. Synchronize() is only needed if you are using TIdFTP in a worker thread. Gambit
Technical Details
Message-ID:
<467fefbc@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<467f387d$1@newsgroups.borland.com> <9vnv73dl97vfkq2qqs8spvb1ermjvjkgsu@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,43e624bf4e799e37 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: <467f387d$1@newsgroups.borland.com> <9vnv73dl97vfkq2qqs8spvb1ermjvjkgsu@4ax.com> Subject: Re: Need Assistance with the TIdFTP Component in BCB 2006... Date: Mon, 25 Jun 2007 07:31:18 -0700 Lines: 26 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.252.126 Message-ID: <467fefbc@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1182789564 75.82.252.126 (25 Jun 2007 09:39:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail