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: Buffer Too Small in FTP List
User20

Posts: 4
Member Since: 05/20/02
posted May 20, 2002 10:40 AM

I have experienced a buffer problem in how much data can be returned from a directory listing. It seems that the amount of text that the control waits for is limited to 128KB. Is there any way to extend this? I can easily be dealing with folders that have more than 1MB in text to return during a directory listing. If I use the NameList method I get more information, but that is also limited and it doesn't give me file size which I also require.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 20, 2002 1:23 PM


Hi,
I am unable to reproduce this.
I just retrieved a listing that was 4MB in size without a problem. Does this problem occur with the ListView sample? With the latest version of the dlls?
http://www.dart.com/downloads/update.exe
Thanks,
-ken

K M Drake
Dart Tech Support
User20

Posts: 4
Member Since: 05/20/02
posted May 20, 2002 2:27 PM

I'll try that, but I had already updated the DLLs before reconfirming the problem. I am talking about the actual text that is coming out of the underlying FTP session being 128KB. This takes just under 1000 files to achieve (depending on the length of filenames).
User20

Posts: 4
Member Since: 05/20/02
posted May 20, 2002 3:17 PM

I seem to have found the basis of the problem. I was getting the full 1700+ files with the listview sample so I looked to see what the difference was. I was calling list with a "*.jpg" argument which was limiting the return to 997 files. If I gave no argument it is returning all files (even though they are all .jpg files). This is not a character case problem either. It is most likely a bug in the conditional case when there is an argument passed to the list method. I will just go with no argument, but I'd appreciate it if you'd fix that bug.

Thanks,
  Brad
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 20, 2002 3:23 PM


I doubt there is a bug. All we do is send "LIST " followed by whatever you passed in as a parameter. Then we give you back whatever we received. I think if you look at the list provided with the sample you will probably see that some of the files probably have "JPG" as the extension or maybe even "jpeg". Please note that the wildcard is case-sensitive.

Hope this helps!

Tony Priest
Dart Tech Support

User20

Posts: 4
Member Since: 05/20/02
posted May 20, 2002 3:42 PM

I know the request is case-sensitive. I went in and confirmed that all of the filenames are lowercase .jpg. My server in this case doesn't accept the "LIST" command. When doing these lists by hand it seems that it is a bug in my ftp server. If I do a dir *.* from the XP DOS FTP client I just get the first 997 files back. Damn unix servers.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 20, 2002 4:10 PM


That's a bizarre one. I wonder what's up with the limit. It tried it here on Linux just now and I get the exact same limit!

Just so you know, I moved all the files over to and IIS FTP server and both listings were identical.

Thanks,

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