Jpeg loading problem

Previous topic - Next topic

MrTAToad

I have found on Windows (haven't tried any of the other platforms yet), that loading different JPEG's into the same sprite ID causes one of two problems :

A)  A Run-time error window or,
B)  Program crashes (and, in my case, affects Internet Explorer) and corrupts sprites being displayed.

The code I'm using is :  
Code (glbasic) Select
LOADSPRITE selectPictureFiles.programDir$+"/"+selectPictureFiles.list$[backgroundIndex%],SPRITE_BACKGROUND%
backgroundIndex% changes between 0 and 1, and of course, the array exists and has two filenames

I tried using
Code (glbasic) Select
LOADSPRITE "",SPRITE_BACKGROUND%, but that makes it worse...

[attachment deleted by admin]

Ian Price

#1
I stated that there were JPEG loading/displaying problems a while back, but forgot about upping a demo.
It really fecks things up, doesn't it? It's pretty erratic too. This is one of the reasons my BattleCards game has been delayed. And it does indeed affect pc and other formats.

I mentioned it HERE
I came. I saw. I played.

Kitty Hello

works for me. Please zip a package where I can reproduce it.

MrTAToad

Here it is. 

It can take anything from 2 to 5 goes before the program unexpectedly terminates.

[attachment deleted by admin]

Ian Price

I came. I saw. I played.

MrTAToad

Are you using x64 by any chance ?

Its fine with x32 Windows 7 - need to test XP later on.

Ian Price

I'm using XP and the problem definitely exists.
I came. I saw. I played.

MrTAToad

#7
Yes, I get it in XP too :

Event Type:   Error
Event Source:   Application Error
Event Category:   None
Event ID:   1000
Date:      02/10/2009
Time:      11:00:56
User:      N/A
Computer:   RIGHTCOMPUTER
Description:
Faulting application testjpeg.exe, version 0.0.0.0, faulting module ntdll.dll, version 5.1.2600.5755, fault address 0x00011909.

PNG is fine - JPEG's just seem to be the problem.

Kitty Hello

oh dear. On XP there seems to be something.

MrTAToad

I've also got to check another Vista x64 machine followed by Vista x32 and XP again...

MrTAToad

#10
The other Vista x64 machine crashes the program too.  32-bit version of Vista is fine.

Have tried a complete re-installation of GLBasic, but that didn't help.

MrTAToad

Unfortunately it still does it in the latest update.

dejunai

This is still a problem on Win32 ( I'm using Vista x64 ), and on the WiZ.
Is there anything I can do to help resolve this?
-DEJ

Kitty Hello

So the x64 platforms crash with libjpeg?

Ian Price

JPEGs don't work properly no matter what the system - Windoes XP, Windows 7 64bit, GP2X or Wiz. They Might display once properly, if you're lucky, and then cause other problems, including crashing and graphical glitching.
I came. I saw. I played.