Creating new Table View sometimes crashes application

Hey guys,

I’ll try to explain the problem I’m experiencing as best I can.

I’m making an application that deals with photos either imported from the device’s library, or taken with the device’s camera. These images are imported into a display group, and objects can then be overlaid on top of the imported image to create a new image.

The “objects” that can be overlaid are displayed to the user in a table view of icons that are added when the row is rendered. When the user selects to open the list of objects, the table view is created but sometimes this process causes the application to crash.

I’ve tested extensively using different approaches, and it seems to me to be a problem with the table view “mask” I am using. If I choose against using a mask, the table is created without a problem and the application seems to run smoothly, but as soon as I use a mask the application will sometimes crash when trying to create the table view.

I’ve also tried creating a display group with the icons added inside (without a table view) and applying a mask to that display group. This will also crash the application.

Does anyone have a suggestion as to why this might be happening?

Thanks,

Tim

[SOLVED] I’ve just realised the mask I was using was not setup properly. It’s width and height were both not multiples of 4. For anyone else having similar issues, re-read the masking guidelines! I’m no longer experiencing the problems I was before.

http://www.coronalabs.com/blog/2012/05/29/how-to-use-bitmap-masks/

[SOLVED] I’ve just realised the mask I was using was not setup properly. It’s width and height were both not multiples of 4. For anyone else having similar issues, re-read the masking guidelines! I’m no longer experiencing the problems I was before.

http://www.coronalabs.com/blog/2012/05/29/how-to-use-bitmap-masks/