ARDrone2Windows/SDK

FTP File Download Issues

Opened this issue · 0 comments

I've seen that there is an FTP Download Implementation for Windows 8 and so I tried to use it for Windows Phone 8. The only change I made was to change TemporaryFolder into LocalFolder for the tempFile in the DownloadFileAsync method of the FTPClient.

The issue:
The DownloadFileAsync method in the FTPClient-Class works for usually 1-2 files. When I try to download the 3rd file (or sometimes the 2nd or even the 1st) in a row I usually get a ObjectDisposedException which seems to occur somewhere in ReadResponseAsync or a get an FTPException, because the return code is not as expected.
After downloading a file i switch to another Folder (to download the files there) on the Server and usually after a time I get a FTPException there too.
If a just query over all Folders everything works fine. If there are file downloads in between exceptions occur.

My current workaround for the problem is to have a try-catch over the whole ftp process (switch dirs, list dirs, download files, delete files). When it failes I reinitialize the FTPClient object. It often needes a few tries (up to 5 or 6) but after a while all images can be downloaded. That is no good solution because when I try to download 3 images I get about 6 exceptions...

May you know about FTP issues and can help me.

Thanks, Niklas