iPhone app crashes only in Release mode on 3G
I have an app I'm writing that crashes when I call addSubview on a UIScrollView with "EXC_BAD_ACCESS". It only does this on iPhone 3G in release mode and only on the device. I works fine in all these other configurations: iPhone 3G - Debug mode iPhone 3GS - Debug AND Release Mode iPhone 4 - Debug AND Release Mode Simulator - all. Furthermore, there is no rational reason why this should be happening. My object is not released by any of my code. I had the exact same problem recently, however I am not entirely sure the cause is the same. What I can tell you though is what resolved the issue for