Jump to content


Photo

FXP Simultaneous transfers


  • Please log in to reply
3 replies to this topic

#1 jacomh

jacomh
  • Members
  • 5 posts

Posted 12 February 2014 - 02:27 PM

Hi! I have some questions about the fxp transfers:

 

How can I have multiple fxp transfers (at the same thime)?

 

If this is not possible, how can I iterate over FTPItems to transfer the files from source to destination (with the FXPFile method)?

 

            foreach (FTPItem item in _exclusiveItemsInSource)

            {

                Console.WriteLine("Comienza el envio del fichero: {0}", item.Name);

                _fxp.FXPFile(item.Name, item.Name, 0, 0);

                Console.WriteLine("Finaliza el envio del fichero: {0}", item.Name);

            }

 

This code is not working for me.

 

 

Thank You in advance.



#2 mb

mb

    Developer

  • Administrators
  • 11848 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 12 February 2014 - 02:35 PM

Create a new thread for each transfer.

#3 jacomh

jacomh
  • Members
  • 5 posts

Posted 13 February 2014 - 10:36 AM

Hi again.

 

I'm trying to transfer the files in separate threads (one thread for each file) but, at the time the second file will start transfer (with the FXFFile method) I'm getting and exception with this message: Error HRESULT E_FAIL has been returned from a call to a COM component.

 

Thank You.



#4 jacomh

jacomh
  • Members
  • 5 posts

Posted 13 February 2014 - 02:10 PM

Sorry, I've read in other forum post that I must try-catch the exception and I can ignore it.

But with the FXPFile method in separate threads (one thread for each file), only one file is copied.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users