Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: mget problem!!
katusa91

From: seoul, South Korea
Posts: 5
Member Since: 06/27/02
posted April 25, 2003 6:23 AM

when i demontrates "mget" method on-line status, it works good.
but, in off-line status (when timeout occurred) doesn't jump error_log place.
i want to know that reason. when it occurred time-out, mget-method executes next step codes
instead of jump to err_place.
========================================
Private Sub Command1_Click()

On Error GoTo OnError

Ftp1.MGet "test\*","c:\down"

Exit Sub

OnError:

Debug.Print "Error #" + CStr(Err.Number) + ": " + Err.Description

End Sub
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 28, 2003 5:26 PM

Hi,
Normally with MGet, if there is a problem transferring a file it is listed in the FileErrors parameter, and the control goes on to the next file. However, with a Timeout error, the control connection is closed, so MGet should be throwing an error.
I have reported this to our development staff as issue #1740.
Thank you for informing us of this problem.
-ken
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 29, 2003 3:32 PM

Hi,
It has been determined that changing this behavior could break existing apps. I would recommend checking the Errors collection after the MGet, and you could also check the Ftp.State after the method completes, to check to see if a Timeout occurred.

You could also use the List and Retrieve methods in conjunction to individually retrieve each desired file, in place of using MGet.

-ken
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX