Singelton on iPhone Simulator vs Singelton on real Device
- by Helge Becker
I am using a Singelton for some shared stuff. In the simulator, the app crashes ocasionally. Tracking the crash down shows that the the properties of my Singelton became dealocated. Those crashes never happend on a real device.
Does the iPHone simulator handle memory managemend different? GC maybe?
Changed the singelton to match this pattern.
The iPhone Simulator dont crash now, but I am not sure about the memory handling on the real device. I assume that this solution will cause problems.
What do you think?