i have developed a game that is currently running on iphone/ipad/ipod touch without any problems.
recently i needed to run it on the simulator, and i found that it crashes on a specific load function when starting one of the levels, i went to the crash report in user/Library/Logs/DiagnosticReports and saw that abort() is being called after the constructor of one of the game objects is called:
0 libSystem.B.dylib 0x93100ef6 __kill + 10
1 libSystem.B.dylib 0x93100ee8 kill$UNIX2003 + 32
2 libSystem.B.dylib 0x9319362d raise + 26
3 libSystem.B.dylib 0x931a9679 __abort + 124
4 libSystem.B.dylib 0x9318c3bc release_file_streams_for_task + 0
5 gamehere 0x0004d650 Piso::Piso(W3d*, int, int) + 758 (Piso.cpp:45)
so i go to “Piso.cpp” and see that line 45 is just the ending bracket of the constructor for this object.
i really dont have a clue of what can be the cause of this crash, inside that constructor i load textures, initialize some counters, arrays and other stuff for that class, again, any of those have caused problems when running on devices…
i really appreciate some ideas on where to look in order to fix this.
Thanks!.
A close bracket means the destructor of some local variable. For example: