Hi Mark,
Have you tried using Passive FTP? oIP.lUsePassiveFtp = .t. should do the trick for these kinds of issues.
Invalid handle access can occur if a connection was lost which can occur if a FTP Server restarts or when a proxy server or firewall somehow mashes a connection which is more and more common. I pretty much always use Passive FTP even though active should be working because it's more resilient. And that's not just with wwFTP but with FileZilla as well.
+++ Rick ---
>I've been successfully using West Wind's FTPSENDFILEEX to send a PDF to a web site. All of sudden, I have started getting an error: Win32 API: The handle is invalid. In the past, I might've gotten this error once a week or less. Now, I get it more than one time a day. The FTP site details are always the same. The only thing that changes is the PDF file that is being sent.
>
>Rick thought that it might be a malformed domain, path or server name. Would I get this error if the path was invalid?
>
>
>
>IF o.FTPSendFileEx( ALLT(cFTPSource), ALLT(cFTPTarget) ) = 0
>
>ENDIF
>
>