Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Book > Book not releasing memory

Not answered Book not releasing memory

Feed from this thread
  • Steve avatar

    Posted on Apr 12, 2011 (permalink)

    When viewing documents that are presented to the desktop, the size of the iexplore.exe process continues to grow as each new page is loaded.   Eventually, the Internet Explorer crashes with an out of memory error.

    How can I tune the system to release the previous documents/pages from working memory as the user moves on to new pages/documents?

    Reply

  • Kiril Stanoev Kiril Stanoev avatar

    Posted on Apr 13, 2011 (permalink)

    Hi Steve,

    Could you please share more information on your particular scenario. I tested RadBook by flipping its pages constantly for more than 5 min. and the memory consumption of the iexplore process never exceeded 43MB. Please take a look at this screencast as well as the attached project and let me know if  I am missing something.

    Greetings,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Attached files

    Reply

  • Steve avatar

    Posted on Apr 13, 2011 (permalink)

    Thanks for replying.  Your video shows the problem exactly!.  The memory of the iexplorer.exe process continues to rise as you flip pages.   What you are missing from your test is a 'real document' that is bigger in size than the empty page in your example.  My document pages are .png format and range from 70k to 200k.  It is not possible to compress them further.   When the users flip through the document, the memory size of the iexplore process quickly grows and exhausts the heap.

    Your example shows a iexplore process starting at 37k on page 0.
    page 4 - 38k
    page 15 - 39k
    page 26 - 40k
    page 40 - 41 k
    page 68 - 42k

    If Book was releasing the pages from memory after the user has moved on, then I would expect the process to stabilize at 38-39k, not continue to grow.  If you re-test with pages that have a bigger footprint then you will more clearly see the growth.

    All we need is a way for Book to release the previous pages from memory after the user has moved on.    

    Here is the code for my project:

    // add all pages from current set of documents to book
    foreach (Document doc in documents)
    {
        Canvas page = new Canvas();
        page.Background = new SolidColorBrush(Colors.White);
        Image pageDupe = new Image();
        pageDupe.MouseMove += new MouseEventHandler(Image_MouseMove);
        pageDupe.MouseLeftButtonDown += new MouseButtonEventHandler(Image_MouseLeftButtonDown);
        pageDupe.DataContext = doc;
        var b = new BitmapImage(new Uri(doc.Url, UriKind.RelativeOrAbsolute));
        pageDupe.Source = b;
        RadBookItem bookItem = new RadBookItem();
        RadBookItem bookItemDupe = new RadBookItem();
        bookItem.Content = page;
        bookItemDupe.Content = pageDupe;
        this.Book.Items.Add(bookItem);
        this.Book.Items.Add(bookItemDupe);
    }

    Reply

  • Kiril Stanoev Kiril Stanoev avatar

    Posted on Apr 14, 2011 (permalink)

    Hi Steve,

    I've posted an answer to your support ticket. Take a look at it and let me know what you think. I'd be glad to further assist you.

    Regards,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Book > Book not releasing memory