| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: FTP Control Blocks Continuously After A Disconnect |
| User1027 Posts: 3 Member Since: 07/17/00 |
posted December 1, 2000 1:17 AM ok, so i'm making a small app that will transfer database backups from one server to another across the net. Implementing FXP was a bit tricky but it works. However the chicago server is a little buggy and every now and then it quits abruptly after i issue a port command. I try to re-login only to find that the control is still blocking from the port command. The abort method that is supposed to clear everything up doesnt work at all, and as it states it states in your help file for the abort method..."If a blocking method is executing, a ptAbort or httpAbort error is returned (which will throw an error exception)." I'm at a loss of what to do here since the control is worthless after that error, stuck in a perpetual block. A lady had the same problem in a post at http://support.dart.com/forum.dwp?view=1896#FID1896 but she didnt describe it too well. I hope you can help me out here, i'm gonna be checking the board every day cuz i really wanna get this thing finished. thanks alot tony! |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 1, 2000 8:54 AM Please tell me how to simulate the problem using our sample app. I have an FTP server here that I can make disconnect after receiving a PORT command. |
| User1027 Posts: 3 Member Since: 07/17/00 |
posted December 3, 2000 2:43 AM you know, it's the funniest thing...I though i was all up to date the the various components but after i downloaded the update.exe and installed it, abort suddenly worked. Now the destination server aborts just great. however, is there any other way to get out of a block? like when you're downloading a file and want to abort the transfer? i tried sending the abort command but it didnt seem to work. any ideas? oh, and sorry for being a doofus about this Tony :) thanx for your patience and excellent controls! |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 3, 2000 11:02 AM When you send Ftp1.Abort, it causes both the Data and control connections to be severed. When you send Ftp1.AbortCommand, it causes the control connection to send "ABOR" to the server, which causes the server to abort the data connection while leaving the control connection intact. |
| User984 Posts: 1 Member Since: 12/31/00 |
posted December 31, 2000 9:10 AM I am using PowerTCP FTP control within Powerbuilder. I have written a function to Retrieve files from a Unix system to my local PC. I am using blocking and timeout value > 0. During the Retrieve I wish to allow the user to cancel the transfer. I have seen the Abort and AbortCommand. What are the differences between these two commands? I have not been successful in having the Retrieve stop when the customer hits the 'cancel' button on their window. When they hit the 'cancel', the Retrieve does NOT stop. a. How should I implement the Abort/AbortCommand? b. Your sample Powerbuilder Application does NOT work. Can you tell me why not? Thank you, Bently Turner |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted December 31, 2000 1:47 PM When you say the sample does not work, do you mean the Abort part or the app as a whole? I just loaded the sample and followed these steps that are in the PB6 samples readme: 1) Due to the fact that PowerBuilder caches run-time licenses, there are some steps that you must take before you can run the samples apps. When you load the sample for the first time, you will need to: 1) Copy and paste each Dart control to a new control 2) Delete the old control 3) Rename the new control to the original name. I then ran the sample and logged in. During a retrieve I hit Abort and this was what happened: 426 Transfer aborted. Data connection closed. 226 Abort successful Session aborted. which is correct. What happens when you do exactly the same thing? Have you installed the latest update?: http://www.dart.com/downloads/update.exe Thanks, Tony |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|