Re: Connect - Invalid host name (General questions)

by Jasmine, (6963 days ago) @ Iulian

Iulian,

this is by design - component didn't start the connection at all since it cannot resolve the hostname. So, you must add the code to catch the exception.

Similar thing is in, for example, PutFile when local file doesn't exist - exception will be thrown (well, it is visible as exception in Delphi) instead of Done event. That's because internal protocol didn't even start - since error occurred much sooner.

Hope I helped.
Kreso

locked

Complete thread: