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: Abort and State
savc01

From: Québec, QC Canada
Posts: 11
Member Since: 10/11/02
posted March 6, 2003 1:26 PM

Hi!

Sometimes, after I call the "Abort" method of the Http control, the "State" property changed to "httpCompleted" instead of "httpClosed" like it is written in the documentation.

Why?
Thanks!
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 7, 2003 12:06 PM

Hi,
Actually, the help page for Abort says "tcpClosed" (not "httpClosed"). This page is shared by all our controls that have an Abort method. But the Http control is different, in that it used wininet, and has its own state properties. I have submitted this help error to our tech writer.
Sorry for the confusion,
-ken
savc01

From: Québec, QC Canada
Posts: 11
Member Since: 10/11/02
posted March 7, 2003 1:48 PM

Ok... the reason why I was asking that is because I have a problem with the abort method.

If I call the abord method, everything stop downloading. But the next document I try to get fails with the following message:

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

If I try to get a third document, everything usually goes right.

Is there a way to kind of "Reset" the control???
Thanks!
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 7, 2003 1:54 PM

Hi,
Please confirm that you see this problem with the latest version.
http://www.dart.com/downloads/update.exe
Thanks,
-ken
savc01

From: Québec, QC Canada
Posts: 11
Member Since: 10/11/02
posted March 7, 2003 2:14 PM

Hi!

Yes, I have the latest version. (I run update.exe just in case and it was the correct version)

K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 10, 2003 11:08 AM

Hi,
I tried a few Urls, but was unable to duplicate this with the Fetch sample (There is a menu option "Stop" that calls Abort). Can you point me to a site that I can get with our sample, and see the problem?
Thanks,
-ken
savc01

From: Québec, QC Canada
Posts: 11
Member Since: 10/11/02
posted March 10, 2003 1:52 PM

Hi!

I only have this problem on our intrenet server, so you won't be able to try the URL.

Anyway I think I have found an alternative solution to the problem. Instead of reusing the WebControl on my form (VB), I declare a new Http control for each get. Is this an acceptable solution? (It won't cause me any problem?)

ex:
Dim gHttp1 As DartWeb.Http
Set gHttp1 = New DartWeb.Http
gHttp1.Timeout = 5000
gHttp1.Url = "http://server/file.ext"
gHttp1.Get "c:\file.ext"
set gHttp1 = nothing
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 11, 2003 11:11 AM

Hi,
If you do not mind the cost of creating new instances each time, then it is not a problem.
-ken
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX