×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    10

    Problem with PageStack - too much memory usage

    Hello, i'm new here.
    I'm searched the internet about this but i found nothing :/

    I'll try explay the situation: I have a PageStack on a main window and some pages in qml files. Everything is working fine, until i check the memory usage when I access a page and go back.
    I pop the page when going back and I thought that was enough to release the page memory for OS.

    The things going worst when I access a page with a ListView binded to a model of inherited from QAbstractListView. When I access first time, it's ok. When access second time, the page take a while to load. When access the third time...

    I checked all the code for memory leaks and found nothing. I don't know what i'm doing wrong.
    All pages are pushed and poped from PageStack, but the memory isn't doing back to OS.

    I hope if some of you just have passed through this problem.

    Many thanks and sorry about my english.

  2. #2
    Registered User
    Join Date
    May 2009
    Location
    Rome
    Posts
    268

    Re: Problem with PageStack - too much memory usage

    have you considered using createComponent to instanciate page as needed ? it should be possible then to use deleteLater explicity
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    10

    Re: Problem with PageStack - too much memory usage

    Thanks for reply

    I just tried this but i got "TypeError: Result of expression 'page.deleteLater' [undefined] is not a function.". I tried use it on the object i've created using the createObject and got the same thing...

  4. #4
    Registered User
    Join Date
    May 2009
    Location
    Rome
    Posts
    268

    Re: Problem with PageStack - too much memory usage

    you are right about deleteLater
    i have tried this code and it works
    if (pageStack.depth>1){
    var o=pageStack.currentPage;
    pageStack.pop();
    o.destroy(3000)
    return
    }
    Qt.quit();
    i have set a value of 3000 as delay for destroy because code in PageStack components looks for the page while execute transition to previous page
    Keep it simple, stupid
    borg - http://store.ovi.com/content/116105

  5. #5
    Registered User
    Join Date
    Oct 2011
    Posts
    10

    Re: Problem with PageStack - too much memory usage

    Tested here and now it's working.

    Maybe it's a QT bug?

    Anyway, thank you very much

Similar Threads

  1. Memory Usage by UID
    By ManuMies in forum Symbian
    Replies: 6
    Last Post: 2010-11-15, 04:28
  2. Memory usage
    By Bill_Murray in forum Symbian
    Replies: 6
    Last Post: 2008-02-08, 10:03
  3. Usage of memory
    By mcwo in forum Mobile Java General
    Replies: 0
    Last Post: 2007-04-17, 11:31
  4. How to get CPU and memory usage on 3rd
    By janeed in forum Symbian
    Replies: 13
    Last Post: 2007-01-18, 10:36
  5. Memory usage...
    By brain_dead00 in forum Symbian
    Replies: 1
    Last Post: 2004-02-24, 05:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×