Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : Re: Looking for a good FTP component
| Subject: | Re: Looking for a good FTP component |
| Posted by: | "Boian Mitov" (mit..@mitov.com) |
| Date: | Tue, 12 Dec 2006 16:40:07 |
Remy Lebeau (TeamB) wrote:
> Why would you ever call Put() withough calling Connect() first? You can't
> do anything with the server until you first connect to it. And no, it will
> not throw an AV. It will throw an EIdNotConnected or EIdConnClosed instead.
> Indy does check the connection status before writing data to the socket.
On my system it throws AV without exception. I asked 2 other people to
test it and it did the same on their systems, so it is not only my
system. Sorry! Whatever the case the component should be able to guard
against such a condition and should report a proper error message or
exception, not AV.
>
> When the dwInternetStatus parameter is INTERNET_STATUS_SENDING_REQUEST,
> INTERNET_STATUS_REQUEST_SENT, or INTERNET_STATUS_RESPONSE_RECEIVED, the
> lpvStatusInformation parameter points to a DWORD that specifies the number
> of bytes transferred. This is stated in the WinInet documentation.
yes, I have found that and I posted on it last night. I was still
digging in all the docks when I found it. I tested it and it works. This
is what I will probably use in the long run.
none