FXP Simultaneous transfers

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
jacomh
Posts: 5
Joined: Wed Feb 12, 2014 10:16 am

FXP Simultaneous transfers

Post by jacomh » Wed Feb 12, 2014 2: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.

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: FXP Simultaneous transfers

Post by mb » Wed Feb 12, 2014 2:35 pm

Create a new thread for each transfer.

jacomh
Posts: 5
Joined: Wed Feb 12, 2014 10:16 am

Re: FXP Simultaneous transfers

Post by jacomh » Thu Feb 13, 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.

jacomh
Posts: 5
Joined: Wed Feb 12, 2014 10:16 am

Re: FXP Simultaneous transfers

Post by jacomh » Thu Feb 13, 2014 2: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.

Post Reply