Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: Web Control Miscellaneus error
User974

Posts: 4
Member Since: 01/08/01
posted January 8, 2001 7:27 PM

Dear Sir,

I am using WEb Control in order to Get a file from a Web Server.
The applications run every 2 min. in order to Get the file. The communication with The Web Server is due to a IP based CDPD network.

My problem is after I got the following error:

"The operation was canceled, usually because the handle on which the request was operating was closed before the operation completed."

Trying to Get the file, after that allways got the "Miscellaneus error" every time I try to get The File.

The only work-arround at this time is to Close and Re-run the application.

I am using Win 2000 as Operating System and C++ Builder 5.0 as Development plattaform.

Any help will be appretiated.

Luis Franco

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 8, 2001 7:30 PM


Please tell me EXACTLY how to duplicate this error. If you can use the VB sample.

User974

Posts: 4
Member Since: 01/08/01
posted January 9, 2001 12:48 PM

I am using a blocking-mechanism.
These are the events:

. Get Method issued
. State event code 5 received
. After aprox. 2 min (TimeOut Property 120000)
. Error Event "Caused When Get, Head, Post or Put
Methods are used with a TimeOut parameter and The Operation Fails"
. Abort Method issued
. Aplication Wait 1 Min.
. Get Method issued
. Error Event "The operation was canceled, usually because the handle on which the request was operating was closed before the operation completed."
. Abort Method issued
. Application Wait 1 Min.
. Get Method issued
. Error Event "Miscellaneus Error"
. Abort Method issued
. Application Wait 1 Min.
. Get Method issued
. Error Event "Miscellaneus Error"
. Abort Method issued
. The last 2 events happens every 1 Min.


Thanks in advance for your help!!!

Luis Franco
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 9, 2001 1:20 PM


I am unable to duplicate this problem using our sample. Please tell me what I need to do. Supply the URL if needed. Thanks.
User974

Posts: 4
Member Since: 01/08/01
posted January 9, 2001 1:59 PM

The application is simple:

. Every 1 Min The application Gets a file from a Web Server.

. URL: http://198.229.6.23/fullsize.jpg

This Web server is connect to a IP based low-bandwith wireless CDPD network.

Thanks in advance for your help!!

Luis Franco.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 9, 2001 2:11 PM


Are you disabling the Timer when you enter it? I just tried this page and it took more than a minute to get it. Maybe you are reentering your Timer before the HTTP operation is complete?
User974

Posts: 4
Member Since: 01/08/01
posted January 9, 2001 3:03 PM

My application does not use a Timer. Instead runs as a loop:

. (start) Get File
. Process File
. Sleep (1 Min)
. go to start

All procesing is sequential.

Luis Franco
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 9, 2001 3:52 PM


Please make a very simple sample project and e-mail it to support@dart.com and we will look at it when we get a chance. Make sure you zip the source files into one zip file.

If you can do this in VB resolution will most likely be quicker.

 
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX