Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

progress bar doesn't move until the end RSS

2 replies

Last post Jan 09, 2008 03:05 AM by tsigman

(0)
  • tsigman

    tsigman

    Member

    40 Points

    20 Posts

    progress bar doesn't move until the end

    Jan 04, 2008 09:51 PM | LINK

     It looks like the downloader progress calls are being batched up and sent at the end of the download process. I added some debug code to show the percentage and milliseconds in my onDownloadProgressChanged method (see below).  The effect is that the progress bar doesn't move until the download is complete! My code follows the pattern in the help file. Any ideas why?

    Download started: 0
    5% progress call 20375
    11% progress call 20407
    11% progress call 20407
    11% progress call 20407
    11% progress call 20407
    17% progress call 20422
    17% progress call 20422
    17% progress call 20422
    17% progress call 20438
    ...
    98% progress call 20969
    99% progress call 21203
    99% progress call 21203
    100% progress call 21313
    100% progress call 21313
    100% progress call 21328
    download time: 21328
  • Cass

    Cass

    Contributor

    3157 Points

    654 Posts

    Re: progress bar doesn't move until the end

    Jan 08, 2008 05:48 PM | LINK

    Can you show us how ur using the Downloader Object? Are you using IIS?

  • tsigman

    tsigman

    Member

    40 Points

    20 Posts

    Re: Re: progress bar doesn't move until the end

    Jan 09, 2008 03:05 AM | LINK

    I am following the Silverlight 1.0 documention "Defining a DownloadProgressChanged Event" under the "Using a Downloader Object" topic.

    I have found that when the cache is empty you see the problem I describe. If the image is in the cache, the progress bar works fine.