I’m running the following test and only get down to the third image before the images become zero. I get no errors or warnings. I still have plenty of memory left on my box. My Win7-64 bit box has 6GB. When I start my test it starts with 2.22 GB used and peaks around 3.10 GB. My Test Image is around 225 MB. Any Suggestion?
Thanks
Results:
img1 size = QSize(5819, 20543)
img2 size = QSize(5819, 20543)
img3 size = QSize(0, 0)
img4 size = QSize(0, 0)
img5 size = QSize(0, 0)
img6 size = QSize(0, 0)
img7 size = QSize(0, 0)
void MainWindow::on_pushButton_clicked()
{
QScopedPointer<QImage> img1(new QImage("test.png"));
qDebug()<<"img1 size = "<<img1->size();
QScopedPointer<QImage> img2(new QImage("test.png"));
qDebug()<<"img2 size = "<<img2->size();
QScopedPointer<QImage> img3(new QImage("test.png"));
qDebug()<<"img3 size = "<<img3->size();
QScopedPointer<QImage> img4(new QImage("test.png"));
qDebug()<<"img4 size = "<<img4->size();
QScopedPointer<QImage> img5(new QImage("test.png"));
qDebug()<<"img5 size = "<<img5->size();
QScopedPointer<QImage> img6(new QImage("test.png"));
qDebug()<<"img6 size = "<<img6->size();
QScopedPointer<QImage> img7(new QImage("test.png"));
qDebug()<<"img7 size = "<<img7->size();
}
↧