[Interest] Error : QImage: out of memory,

Nilesh Kokane nilesh.kokane05 at gmail.com
Mon Aug 1 19:19:59 CEST 2016


On Aug 1, 2016 8:20 PM, "Igor Mironchik" <igor.mironchik at gmail.com> wrote:
>
> Hi,
>
> You get this error in slot onImageReceived()?

No

> or you are talking about this lines:
>
>
> QImage img(cdata, 288, 352, QImage::Format_RGB888);
>     img = img.scaled(QSize(288*1.5,352*1.5));
>     delete[] cdata;

Yep.

This happens when I repeatedly call the function for 10 minutes approx.

--
Nilesh Kokane - nilesh.kokane05 (AT) gmail.com




Nilesh Kokane - nilesh.kokane05 (AT) gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160801/42d37aa2/attachment.html>


More information about the Interest mailing list