| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: Web Tool Non-Blocking Error Trapping |
| User349 Posts: 1 Member Since: 01/02/02 |
posted January 2, 2002 1:38 PM Im writing a program that runs an array of 10 web tools using the non-blocking method. Basicly, I need to add error handling and a timeout feature. For some reason, a url will take up to 10 minutes to finsh with the web tool, and I'd like to kill and restart after 30-60 seconds. Is there any example code or a direction someone could point me in?? Thanks for any help, Paul |
| david228 From: Sydney, Australia Posts: 3 Member Since: 02/26/02 |
posted February 26, 2002 12:11 AM Hi Paul, yes, I have the same problem, Dart did not provide any information or sample code for this, and there is not "cancel" method for the control. Can any one help me with this? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted February 26, 2002 9:00 AM Hi, You can use a timer object, and then call Abort if the specified time has elapsed before the server's response has been received. -ken K M Drake Dart Tech Support |
| david228 From: Sydney, Australia Posts: 3 Member Since: 02/26/02 |
posted February 26, 2002 5:16 PM Hi Ken, Thanks for this. In the help file, it state that "Use the Abort method only when the application in abruptly terminated while a blocking method is executing or under any other unusual circumstances." Do you mean that I can use the "Abort" method at any time no matter Non-Blocking and Blocking mode? If so, I think you need to change your Help file about the "Abort Method", it is really confused people. Could you please confirm this? Best Regards, David Lin Apex Pacific http://www.apexpacific.com |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted February 26, 2002 5:27 PM Hi David, Yes, and thanks for the suggestion. -ken K M Drake Dart Tech Support |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|