Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTPSendFileEx
Message
 
To
30/01/2008 15:53:13
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01287289
Message ID:
01287395
Views:
14
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
>
>
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform