🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem with TIdFTP

#3755
From: Remy Lebeau (TeamB)
Date: Mon, 20 Jun 2005 20:54
27 lines
1914 bytes
"Tom" <thomasf1021@hotmail.com> wrote in message
news:42b71693$1@newsgroups.borland.com...

> Hi, I'm using TIdFtp version 6.0, the version that came with BCB6.

BCB6 ships with Indy 8.0, which is a very old version that is no longer
supported.  Indy 9 has many features and bug fixes over Indy 8, and Indy 10
is the current version being actively developed now.

> Another question on the side is if I need to use Synchronize in the
> OnWork event for updating the progressbar?

Yes.

> I used Remy's code for the Exception handling, but had to change
> CheckForDisconnect(false, false) to Disconnect() because the
> CheckForDisconnect function was not disconnecting the client
> when it was needed.

It wasn't supposed to be.  CheckForDisconnect() doesn't actually disconnect
the client.  It only checks if the socket has been disconnected by the other
party and throws an exception if so.  You still need to call Disconnect() to
release the socket resources.


Gambit
Technical Details
Message-ID: <42b72fe2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42b71693$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,22ba74b29c9a545
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: <42b71693$1@newsgroups.borland.com>
Subject: Re: Problem with TIdFTP
Date: Mon, 20 Jun 2005 13:54:38 -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: <42b72fe2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119301602 68.69.17.41 (20 Jun 2005 14:06:42 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail