EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Aborting FTPS process

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#1399
Posted: 10/10/2006 14:38:05
by Strycek Vladimir (Basic support level)
Joined: 08/02/2006
Posts: 20

Hi im not sure if this is actualy FTPS problem or not, but I have downloading procesure in thread where it downloading specified file from server but i need also button to abort this action. I tries to stop thread but it keep going and dont stop downloading. Also when i trie FClient.Abort it freez whole aplication.

Any idea how to solve this mistery ? ( Delphi )

Best Regard
Vladimir
#1400
Posted: 10/10/2006 14:56:54
by Eugene Mayevski (EldoS Corp.)

The exact answer depends on what exactly you want to do.
If you want to stop the pending data transfer, you can set Cancel parameter in OnProgress event handler to true. This will stop data processing without closing connection.
Also you can call Close() method to close the connection. But this is risky, cause it may cause multithreading problems.


Sincerely yours
Eugene Mayevski
#1402
Posted: 10/10/2006 16:07:28
by Strycek Vladimir (Basic support level)
Joined: 08/02/2006
Posts: 20

Hmm i need to just abort ongoing download... so it still be connected and ready for another. Its like user wanna to download something but in the middle of downloading he decide to abort and start download something else...
#1409
Posted: 10/11/2006 01:17:51
by Eugene Mayevski (EldoS Corp.)

great, then use OnProgress event handler.


Sincerely yours
Eugene Mayevski
#1433
Posted: 10/12/2006 08:00:55
by Strycek Vladimir (Basic support level)
Joined: 08/02/2006
Posts: 20

Hmm strange it doesnt stop right away, but after few seconds (10 -15) its give me a "Control data transfer error" but why ? Is there something else what need to be done beside FClient.Abort and stopping thread ?
#1434
Posted: 10/12/2006 09:28:13
by Eugene Mayevski (EldoS Corp.)

No ideas. If you have a source code, you can check what's going on inside.


Sincerely yours
Eugene Mayevski
#1717
Posted: 11/22/2006 16:58:24
by Strycek Vladimir (Basic support level)
Joined: 08/02/2006
Posts: 20

Hmm im realy trying and without any luck :(

How would you exactly stop ongoing upload/download ?

I know that i have to call it in OnProgress event but whatever i do it just freez aplication aor raise lots and lots of exceptons...

I tried to call Cancel; but that doesnt do anything, it just keep going... i tried call FClient.Abort; that made lots of exceptions the same if i send cmd ABOR to server...

I must be missing something.

Best regards
Vladimir
#1721
Posted: 11/23/2006 05:57:38
by Eugene Mayevski (EldoS Corp.)

You need to use Cancel parameter of OnProgress event and use the latest build that is available for download. I recently fixed some things there. The exception will be thrown when you use this approach, and it's your job to handle this exception. This is by design.


Sincerely yours
Eugene Mayevski
#1724
Posted: 11/23/2006 06:08:07
by Strycek Vladimir (Basic support level)
Joined: 08/02/2006
Posts: 20

You mean latest as v.5 Beta ?
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 4705 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!