Application freezes on FTP.Upload()


Recommended Posts

Hi,

When executing the script below, the application gets to the ftp.Upload() line and freezes. No error is generated, the application just hangs indefintely. The same code works on other machines, and has previously worked on the machine in question. I have network connectivity and can FTP using Windows Explorer. OS is Windows 7 Professional. Any ideas why I don;t at least get a connection error if that is the problem?

Link to comment
Share on other sites

It appears the docs have fallen a little behind. The ftp.Upload() function is a blocking function. My guess is that its hanging trying to establish a connection, where before it was able to communicate easily. You should run upload() in it's own thread / sequence, then start that sequence by using beginseq(mySequence). Then use another sequence to monitor the progress and abort if needed.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.