How I handle a excpetion?

I have a issue that on some devices, Corona has a bug that cause them to not load some images.

It happens that when this is far enough in the app (ie: not right on start) it triggers a unhandled exception window.

How I handle the exception and load another image myself? I think the exception event do not stop execution at where something broke, or does it?

Is this something you can use the pcall() function to run to protect the exception from crashing your app?

I will test, but I have no idea… Can a pcall catch a error generated inside Corona code? (there is a bug with Corona, not my code, not with lua either, that generate the exception)

Hey, pcall actually worked! Awesome :slight_smile:

Is this something you can use the pcall() function to run to protect the exception from crashing your app?

I will test, but I have no idea… Can a pcall catch a error generated inside Corona code? (there is a bug with Corona, not my code, not with lua either, that generate the exception)

Hey, pcall actually worked! Awesome :slight_smile: