none
Fails to download files from the ftp server sometimes RRS feed

  • Question

  • Platform : windows 8.1, Visual Studio 2013, VC++

    We have a VC++ multithreaded application, we connect to the ftp server using MFC class. We have been successfully able to make connection with ftp server and download or uploads files. We have a worker thread running at background which downloads or uploads files to ftp server at regular interval of 6 seconds. But sometimes it fails to download the file and we the following exception as shown below.

     

    COMM_ERROR:

    Comm operation failed with error [317] Info[Get File [chnj20120331180265.txt As [D:\EDISPHERE\1004\From_FTP_Download\chnj20120331180265.txt]] File [commvtor.cpp] Line [1342]

     

    Please let me know what should be done to resolve this issue  or links that might help us with this


    Ramesh Kumar

    Thursday, October 23, 2014 6:45 AM

All replies

  • Platform : windows 8.1, Visual Studio 2013, VC++

    We have a VC++ multithreaded application, we connect to the ftp server using MFC class. We have been successfully able to make connection with ftp server and download or uploads files. We have a worker thread running at background which downloads or uploads files to ftp server at regular interval of 6 seconds. But sometimes it fails to download the file and we the following exception as shown below.

     

    COMM_ERROR:

    Comm operation failed with error [317] Info[Get File [chnj20120331180265.txt As [D:\EDISPHERE\1004\From_FTP_Download\chnj20120331180265.txt]] File [commvtor.cpp] Line [1342]

     

    Please let me know what should be done to resolve this issue  or links that might help us with this


    Ramesh Kumar


    What happens if you just catch the exception and try again?

    David Wilkinson | Visual C++ MVP

    Thursday, October 23, 2014 8:33 AM
  • On 10/23/2014 2:45 AM, "Ramesh Kumar Singh" wrote:

    Comm operation failed with error [317] Info[Get File [chnj20120331180265.txt As [D:\EDISPHERE\1004\From_FTP_Download\chnj20120331180265.txt]] File [commvtor.cpp] Line [1342]

    What code is in commvtor.cpp on and around line 1342?


    Igor Tandetnik
    Thursday, October 23, 2014 1:11 PM