I’ve done a lot of testing and experimenting on this, but I still can’t see what’s wrong.
I’m downloading a PNG image off a website and trying to display it. However, my app crashes at this line:
[lua]local image = display.newImage(
fileNameString,
system.DocumentsDirectory,
display.contentCenterX - 10,
display.contentCenterY)[/lua]
I have a print statement just before and just after this line, and it’s not printing the one after, so I know it’s not going past here.
To test the PNG is ok, I put it in the main app folder and built it into the app, and displayed it when the app starts, which succeeds. It’s also fine on the simulator. Any thoughts welcome.
[import]uid: 23949 topic_id: 6289 reply_id: 306289[/import]
[import]uid: 8045 topic_id: 6289 reply_id: 21682[/import]