| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Is the any effective way to deal with Non-Blocking Mode? |
| User192 Posts: 7 Member Since: 03/13/02 |
posted January 24, 2004 7:29 PM I've being testing FTP Tool trial version for some while but I didn't found the best deal to work with non-blocking method. I usually use similar code when calling ftp object methods: ObjectFTP.Timeout = 0 (...) ObjectFTP.Store (...) Then I set a timer (with a specific timeout) and a Loop waiting for Event fires and turn a Bolean variable = True like this. iStartTime = timer Do if iStartime > 5 (seconds) then exit do Loop Do you consider a better performance and logic way to sit while FTP Tool works in NB Mode? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 24, 2004 11:33 PM Just call store, then use the progress event to get info about where you are in the process. Stop using the timer and the loop. All you are doing is making it block anyway so you may as well use timeout > 0. |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|