Re: ProgressChange? What is up?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Sun, 29 Jan 2006 18:25:41 -0500
"Mike2" <parksfamily@xxxxxxxxx> wrote in message
news:61iqt15ca3db4ld8eh4og7eeb0t7ib9ga0@xxxxxxx
> According to MS Progress is returning the bytes while ProgressMax
> returns the maximum bytes.
>
> It also states to calculate percentage for a progress bar then,
> (Progress * 100) / ProgressMax
>
> When I do this I get errors. One of which is Division by 0. I checked
> and Progress is still showing a huge number and ProgressMax is
> returning 0.
This happens when the server does not report the size of the resource,
e.g. via Content-Length header. If the server does not say, there is no
way for the client to know it until it is fully downloaded. You have to
check for this special case.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: ProgressChange? What is up?
- From: Mike2
- Re: ProgressChange? What is up?
- From: Mike2
- Re: ProgressChange? What is up?
- References:
- ProgressChange? What is up?
- From: Mike2
- ProgressChange? What is up?
- Prev by Date: Re: ProgressChange? What is up?
- Next by Date: Re: ProgressChange? What is up?
- Previous by thread: Re: ProgressChange? What is up?
- Next by thread: Re: ProgressChange? What is up?
- Index(es):
Relevant Pages
|
|