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: Progress Event Fires with count=100, size=100
gerbmeister

From: Pleasant Grove, UT USA
Posts: 44
Member Since: 10/12/04
posted March 27, 2006 8:33 PM

When using a get call, the progress event will fire once with count=100 and size=100, then it will fire with the correct values as it receives the file.

Why is that?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 28, 2006 9:21 AM

Two possibilities:

1) You are calling the Head method first (like we do in the sample) and you are seeing the count and size from that call

2) The page you are requesting is causing a redirect, which causes another Get to occur.

gerbmeister

From: Pleasant Grove, UT USA
Posts: 44
Member Since: 10/12/04
posted March 28, 2006 11:53 AM

If you look at the Page Fetch example, it will fire a progress(100,100) twice before firing again with the actual pages values. The first one fires with the head function, the next two will fire when the get function is called. This occurs on every web page I have tried (including www.dart.com).
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 28, 2006 4:33 PM

Thanks for reporting this. I am not sure why it happens, but I have written it up as issue #3570 for consideration at the next release (sorry, no date yet)

I'm not sure whether we can change the behavior at this time though as it may break code that other people have already worked around.

Please contact us directly (email or phone) and reference issue #3570 if you have more concerns.

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