Component is busy after issuing ListDir comman - WeOnlyDo Discussion board

Component is busy after issuing ListDir comman (wodSFTP / wodSFTP.NET / wodSFTPdll)

by jim, Wednesday, January 17, 2007, 05:15 (6330 days ago)

greetings,

can someone explain this error? code snippet
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
With axFtp
If .CtlState = wodFtpDLXLib.StatesEnum.Connected Then
Dim sFullPath As String = /home/secft/download/FIDXXX
Dim lngRT As Long = .CheckDir(sFullPath)
If lngRT = 0 Then
.DirFormat = wodFtpDLXLib.DirFormats.fmtAuto
.ListDir(sFullPath)
Tag = ListDir
Else
lbFTPFilesR.Items.Add( No files available for DownLoad )
End If
End If
End With
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
the ListDir cause Component is busy exception. i make sure that it is connected and that the directory exists, but when the command is issued, it excepts.

tia

jim [code][/code]

Re:

by wodSupport, Wednesday, January 17, 2007, 08:53 (6330 days ago) @ jim

Jim,

CheckDir method also needs some time to complete - you must wait until it finishes.

Or you could use Blocking = True.

Hope it helps.
Kreso