Stop transfer in FileTransferProgress Event

Advertisement

bpacilio59
Joined:
Posts:
8

Stop transfer in FileTransferProgress Event

I sometimes have large downloads or uploads that may need to be interrupted. Can I stop the transfer from withing the FileTransferProgress event ? I don't want to end the session, I just want to stop the current tranfer

Reply with quote

Advertisement

bpacilio59
Joined:
Posts:
8

Re: Stop transfer in FileTransferProgress Event

Given this is the only way, I would be ending the session from the FileTransferProgess Event. Would I be better off using the session->close or the session->abort ?

martin wrote:

No, this is not supported. Ending session is the only way.

Reply with quote

Barlo
Joined:
Posts:
9

Session abort example

Hi,
I'm using session.SynchronizeDirectories, but sometimes is needed stop the transfer. The issue is that I dont't know how to use session.abort. I have added a new button to the form to implement the stop funcionality.
Could you please write an example of this?

Thanks.

Reply with quote

Advertisement

Barlo
Joined:
Posts:
9

Thank you Martin,
In that case, could you please, give me some idea, using words, about how to use session.abort in the middle of a transfer so it takes effect?

Thank you in advance.

Reply with quote

Advertisement

You can post new topics in this forum