Hey, I'm new here.
I can't find windows ce as platform on trolltech's Task tracker.
so I'll share my workaround for QJpeghandler here.
in Qt 4.4.3 for wince, 
locate to line 809 of read_jpeg_image in qjpeghandler.cpp, there an codes like

            if (outImage->isNull())
                return false;

modify it to

            if (outImage->isNull()) {
                (void) jpeg_finish_decompress(&cinfo);
                jpeg_destroy_decompress(&cinfo);
                delete iod_src;
                return false;
            }
if you mobile/pda have ram less than 
*outImage = QImage(cinfo.output_width, cinfo.output_height, 
QImage::Format_RGB32);
needed, return false leave jpeg_start_decompress uncleaned, and little (new 
my_jpeg_source_mgr memory) leak.
in my tests it lost 97MByte physics memory here.
there other codes valuable to fix in this function.

another bug report is about QPainter.cpp of Qt 4.5.0
in line 5703
drawTextItem(QPointF(x.toReal(), p.y()), gf);
crashed on first x.toReal
I can't trust it because it’s an so basic helper functions.
I'll try to post later if I found workaround for it.

_______________________________________________
Qt-wince-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-wince-interest

Reply via email to