Maurice,
We found out what the problem is. Apparently, windows ce 5 (windows mobile 5
and windows mobile 6) have a virtual memory limit of 32MB for each process.
We were trying to display a 1600x1400pixel 32bit image and that pushed it
beyond the limit.
According to microsoft, windows ce 6 (windows mobile 7?) will not have that
limit anymore. But for now, we're stuck with it, so we're gonna try cutting
down on memory usage by taking the pictures in 16bit.
I hope this knowledge helps someone in the future, thanks for the help.
Regards
Matthias
On Mon, Apr 28, 2008 at 5:14 PM, Matthias Van Woensel <
[EMAIL PROTECTED]> wrote:
> Maurice,
>
> We deployed the application with the qjpeg plugin (we know it works
> because other jpg's work fine).
> We use the same piece of code that you gave as an example in our
> application. The qfile::readAll() was just to see what exactly was causing
> the problem.
> The qDebug output of readAll() is "ÿØÿà . We also still have like 80MB ram
> free on the device so I doubt it's a memory related problem.
>
> Regards
> Matthias
> On Mon, Apr 28, 2008 at 4:06 PM, Maurice Kalinowski <
> [EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > Matthias Van Woensel wrote:
> > > Attached to this email you'll find a JPG file which opens fine in any
> > > imagebrowser (except for Qt on wince).
> > > When a QFile::readAll() is done on the file on qtce it fails to read
> > > the data (tested on both WM5 and WM6).
> > >
> > Unfortunately I was not able to reproduce this issue here.
> >
> > Do you deploy the jpeg imageformat plugin to the device to be able to
> > display images of this format?
> > You can do this automatically by adding
> > DEPLOYMENT_PLUGIN += qjpeg
> > to your pro file and then recreating the visual studio project.
> >
> > Furthermore I am a little bit concerned why you use QFile::readAll() for
> > displaying an image. Though I have tried that too, the usual way would
> > be something like:
> > QPixmap pixmap("GP_1.jpg");
> > if (pixmap.isNull()) {
> > qDebug() << "Invalid image";
> > return -1;
> > }
> >
> > QLabel* imageLabel = new QLabel;
> > imageLabel->setPixmap(pixmap);
> > imageLabel->show();
> >
> > Do you get any error messages while debugging? The only situation I
> > could think of so far is that your device is running out of memory as
> > the image is rather big?
> >
> >
> > Best Regards,
> >
> > Maurice Kalinowski
> >
> > _______________________________________________
> > Qtce-preview-feedback mailing list
> > [email protected]
> > http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback
> >
>
>
_______________________________________________
Qtce-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qtce-preview-feedback