ListDir result not lasting till DONE event in COM - WeOnlyDo Discussion board

ListDir result not lasting till DONE event in COM (wodFtpDLX / wodFtpDLX.NET)

by condev1972, Saturday, March 18, 2006, 21:16 (6802 days ago)

Hello,
I'm using 2.5.6 COM of FtpDLX within Delphi 5 (Blocking = TRUE).

So far I got it connecting fine to a FTPs server and the
ListItems event is fired.

The documentation says I have to use the DirItems collection
in the Done event to e.g. fill a list view with the actual
entries (I want to do manual parsing on the Item.FullLine ).

Although the DirItems event does have several entries in the
FileInfo parameter, the DirItems collection Count is
0 (zero) when I access it in the Done event.

In other words: ListDir works, but collection is not filled in
Done event as it should. [:uhoh:]

Is the documentation incorrect or not meant for COM?
Or do I have to set a specific property?

Thanks for any hints/help.

Cheers,
Tobias

Re: ListDir result not lasting till DONE event in

by condev1972, Saturday, March 18, 2006, 21:20 (6802 days ago) @ condev1972

Here's some more info:

Below is an example of what I logged during the
connection to prove that the ListDir works, but
in Done event the DirItems.Count is ZERO:

[code]
CWD / 250:250 CWD successful. / is current directory.
State: Downloading directory list from the server
State: Getting secondary data channel
PASV 227:227 Entering Passive Mode (192,168,0,1,5,35)
State: Downloading directory list from the server
LIST -al 150:150 Connection accepted
drwxr-xr-x 1 ftp ftp 0 Mar 18 08:25 dir1
drwxr-xr-x 1 ftp ftp 0 Mar 05 06:20 dir2
drwxr-xr-x 1 ftp ftp 0 Mar 18 13:31 dir3
drwxr-xr-x 1 ftp ftp 0 Dec 21 2005 dir4
LIST -al 226:226 Transfer OK
State: Connected to server - idle
ftpcomDone
Dir Entries: 0
[/code]

The last 3 lines are my own log messages posted from
within the Done event for checking.

Cheers,
Tobias

Re: ListDir result not lasting till DONE event in

by wodSupport, Saturday, March 18, 2006, 21:33 (6802 days ago) @ condev1972

Tobias,

this is very unlikely. Can you zip and send your code to techsupport? I'd like to check it out. Do you use blocking mode?

Cheers,
Kreso

Re: ListDir result not lasting till DONE event in

by condev1972, Saturday, March 18, 2006, 21:56 (6802 days ago) @ wodSupport

Tobias,

this is very unlikely. Can you zip and send your code to techsupport? I'd like to check it out. Do you use blocking mode?

Cheers,
Kreso

Good evening Kreso,
nice to hear from you again, hope all is well for you.
eMail with zip'ed sample project is on its way. :-)
Thanks a lot!

Re: ListDir result not lasting till DONE event in

by wodSupport, Saturday, March 18, 2006, 22:01 (6802 days ago) @ condev1972

Yes, all is well here. I don't answer here that often since new techsupport guys handle it very well.

We've received your email, someone will check it out and get back to you.

Regards,
Kreso

Re: ListDir result not lasting till DONE event in

by condev1972, Saturday, March 18, 2006, 22:02 (6802 days ago) @ wodSupport

Yes, I received the ticket confirmation.

Have a nice weekend then anyway. :-)

Cheers,
Tobias