×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    48

    memory problem: how to clean downloaded images

    hi,
    i am developing an nokia qt app. but the biggest problem is the memory full error on symbian devices (n8 and 5800 ) so i am try to download my pic. from their url and then displaying my code as bellow

    item::item(){
    QNetworkProxyFactory::setUseSystemConfiguration(true);
    QUrl url(imageurl);
    QNetworkAccessManager *manager = new QNetworkAccessManager(this);
    connect(manager, SIGNAL(finished(QNetworkReply*)),
    this, SLOT(updateImage(QNetworkReply*)));
    manager->get(QNetworkRequest(url));
    }

    void item::updateImage(QNetworkReply *networkReply){
    QImage image;
    if (image.loadFromData(networkReply->readAll()))
    { ui->label->setPixmap(QPixmap::fromImage(image));
    }

    }

    this code is running in one time but when this page is called 2nd or 3th time memory problem disappears
    i need to clear the images which are downloaded before . is there any way to clean the memory ?
    it is really urgent. Thank you..

  2. #2
    Registered User
    Join Date
    Dec 2010
    Posts
    1

    Re: memory problem: how to clean downloaded images

    i am getting the same problem when showing images with code like yours. Have you found any way to clear the memory?

Similar Threads

  1. Clean-up Phone Memory: Nokia 5230
    By abunilgiris in forum General Development Questions
    Replies: 11
    Last Post: 2012-02-19, 17:34
  2. protect downloaded mp3(in memory card)
    By kuddy_abc in forum Symbian
    Replies: 1
    Last Post: 2010-05-29, 06:46
  3. Unable to Display Images in Mobile - Memory Problem
    By gamingsan in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2010-05-10, 15:44
  4. creating a slideshow with downloaded images
    By iparrot in forum Mobile Java Media (Graphics & Sounds)
    Replies: 7
    Last Post: 2010-05-05, 16:53
  5. loading 1.3 or 2 Megapixel images memory problem in 7370 (S40)
    By mmalam1 in forum Mobile Java General
    Replies: 3
    Last Post: 2006-09-06, 07:22

Posting Permissions

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