Error while running app on mac simulator, but not on windows

I did not make any changes to both files, just added extra stuff
also, all of the pictures are of type jpg
4o1aImI.png

else they wouldn’t load in the first place

--photogallery.lua local photoFiles = {} for i = 1, 229 do photoFiles[i] = pPath .. i .. ".jpg" end

I did this and got another error:

 

Runtime Error C:\..\..\..\..\slideView.lua:128: ERROR: table expected. If this is a function call, you might have used '.' instead of ':'

--slideView.lua sceneGroup:insert(p)

this is quite annoying, let’s not dig deep into this, so what could be the problem? I doubt the pictures, however, it says that they’re all jpg type, and I also checked them one by one… What should I do?

 

If it can’t load the image for some reason, p will be nil.  You can’t insert nil into a group.  You need to test that you actually successfully created the display object before you use it.  That’s what the “if p” did in the previous suggestion.  You might want to print out the file name of the file that’s failing and take a look at it.

Corona SDK uses whatever native library exists for opening and decoding an image and perhaps there is some minor difference between how Windows handles a potentially corrupt image and how the Mac handles it.  It could be something like corrupt metadata or CMYK JPEG (Instead of the expected RGB).

Rob