Problem solved. Turns out I was expecting malloc to not return junk. By clearing the memory allocated I got it to work flawlessly. It still doesn't explain why the simulator stops working with my collision detection when I do this, and yet it works perfectly on the device.
|