none
Extremely long delay in MapUrlToZoneWrapper called by LateBoundBitmapDecoder.DownloadCallback

    Question

  • After a random interval, our application will appear to lock up when switching to a different view. The profiler indicates that the time is being spent in MS.Internal.SecurityHelper.MapUrlToZoneWrapper (and presumably therefore in the native MapUrlToZone function).  The method takes 1.3s to return; multiply by ~150 images and the total wait time for the user is three minutes (for what is usually an instant operation).

    My question is - why does this start happening at a random point during the application's lifetime?  For the first half-hour or so, the experience is perfectly normal - you can flip between the two views as much as you like with no ill effect.  Then at a certain point it starts taking minutes to switch - one CPU core is at 100% during the period.

    Internally, we're using bitmaps with a UriSource pointing to an in-process http server (long story about why this is the case).

    Tuesday, September 07, 2010 2:31 PM

All replies

  • Hi David Turner,

    Could you please give a simple sample to demonstrate what you intend to do and reproduce the issue, so that we can have a better understanding about it.

    Thanks,
    Kevin Pan


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, September 13, 2010 7:35 AM
    Moderator