My image galery doesn't work on the device...

…but it works in the simulator.

Hi to all the Corona community !
For a first try, I decided to make an image galery with the sdk.
1/ it reads a XML on a website and parses it in a table
2/ the table is read and the “foreign images” (which are on a website) are put in local files
3/ the galery appears

Unfortunately, on the iphone the app crashes on the step 3 (I think, all that I can say is that the galery doesn’t show up)
Do you know where the problem could come from ? There are 20 images to load. Do you think it can be a sort of “buffer overflow” ?
I didn’t find an example to see what could be the best method to load multiple distant images. I started from your simpleimagedownload sample to make my script. Because I have 20 images, do I need to create 20 dummy images that will receive the distant ones ? (like your icon.png in the sample). For the moment, the script creates the “dummies” if they don’t exist, is it something the true iphone can do ?

Well, as you can see, I only have suppositions…

I thank you in advance for your answer. Your tool is so great !
(oh, and btw, excuse my english)
See you soon

Tonyo

[import]uid: 4431 topic_id: 702 reply_id: 300702[/import]

can you send us the assets so we can see what the problem really is?

how big are the images? 20 images and if they are full scrensize may be throttling the texture buffer and running out of memory.

you only have 10 megabytes of texture memory to work with. this is an iphone opengl limit. not corona.

we would be more than happy to take a look at the code if you can send it to us at support@anscamobile.com

carlos [import]uid: 24 topic_id: 702 reply_id: 1403[/import]

Oh thank you. I’ll send you my code.

As far as the images are concerned, they’re resized with a script to fit the iphone screen, so I really don’t think I reached the texture limit.

Thanks for the help ! [import]uid: 4431 topic_id: 702 reply_id: 1406[/import]

Hi,

Thanks to Carlos, my app works now.
the problem was a nil value that the xml parser sent me. It worked in the simulator, but not in real conditions.

Tonyo

[import]uid: 4431 topic_id: 702 reply_id: 1514[/import]

Does not work on the device?

Is the code you sent to me still valid?

or have you updated it? if you have can you fwd to support@anscamobile.com

Carlos [import]uid: 24 topic_id: 702 reply_id: 1517[/import]

Hi Carlos,

I just replied in the forum to explain where the problem came from (it can help someboy else), but thanks to you, it works flawlessly ! [import]uid: 4431 topic_id: 702 reply_id: 1535[/import]