So... I've written my first iPhone game, that consists of maybe 50 puzzles.
At the start of each puzzle I create some strings, various mutable arrays of pointers, some of which point to runtime created subviews. All retained variables are declared as various class properties. Then at the end of the puzzle I remove the subviews, release any memory allocated against pointers, nil my pointers. Then create them again for the next puzzle.
And the app runs great for the first 2, 3, sometimes 4 puzzles then crashes with seemingly random bad access errors etc that I'm struggling to track down. Obviously I'm not quite there with iPhone memory management :)
So, I need advice for debugging? Do you read through every line of code and make a note of every alloc, every subview, a kind of manual retain count? Do I search for allocs and match them to releases? Or are there other techniques?
I don't expect a reply as long as my question , but would any appreciate tips and tricks! Thanks!