Hi!
I am developing an app for Symbian with Qt where you can download some files.
I use QNetworkRequest and QNetworkReply.
It works fine in N97 but I got this error ("CActiveScheduler::RunIfReady() returned error: -4") in N8 after downloading several files, appearing in the screen the next message too: "Memory full, close some apps and try again."
However, I am writing to the file every time I receive some data with the readyRead() signal, so the memory shouldn't be full. Here I attached the code used.
And I have the following code in the readyRead() slot:Code://sets the requested url QUrl url (url_string); qDebug ("Starting download..."); download_canceled = false; //init request QNetworkRequest request; request.setUrl(url); QNetworkAccessManager* netManager = new QNetworkAccessManager (this); //connect (netManager, SIGNAL (finished (QNetworkReply*)),this,SLOT(replyFinished (QNetworkReply*))); reply = netManager->get(request); connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), SLOT(replyError(QNetworkReply::NetworkError))); connect(reply, SIGNAL(finished()), SLOT(on_download_finished())); connect(reply, SIGNAL(downloadProgress(qint64, qint64)), SLOT(on_receivingProgress(qint64, qint64))); connect(reply, SIGNAL(readyRead()),SLOT(downloadReadyRead()));
Thank you so much!Code:void NokiaBridge::downloadReadyRead() { file.write(reply->readAll()); }



