-
iOS Error
I have an app that runs fine in dev on the PC, but I seem to randomly get a EXC_BAD_ACCESS error on this function on the Mac (CMove.m):
-(BOO)newMake_Move: (int)speed withDir:(int)angle
At this line:
hoPtr->roc->rcChanged = YES; //; Sprite bouge!
Any thoughts on what could cause this? It just happens randomly in my game and there seems to be no logic about where/when it will happen.
-
Re: iOS Error
For the benefit of all the other iOS targeting devs:
The root of this crash was a simple problem. I had an Active that was detecting if it hit the background. When it did it launched itself into a Movement. This movement was to basically fly it up and away off a path. Unfortunately, this seemed to compound itself as it ran into a few more background objects on the way out the door. Lesson learned: Check your events before taking over to iOS. The PC version seemed to be a little more forgiving about these types of things. I went into the debugger on the mac and noticed very large X values in the object that was having a problem. I don't know enough about XCode or the MMF2 runtime to debug more, but I do know absurdly large Integers :)
-
Re: iOS Error
Can you tell me the number of the line where the crash happens?