SDL_CreateWindow fails on the iPhone BAD_EXC_ACCCESS. Help!

Hi friends!

I created a project, an iphone game. Everything works fine. I duplicated this project and in my new one I receive a BAD_EXC_ACCESS on SDL_CreateWindow. Only in my phone, in the simulator works fine.

Do you have any idea what is going on?

Your help is very valuable for me, thanks a lot.


[Image: ] (

After changing “Optimization Level”, works fine.