Singelton on iPhone Simulator vs Singelton on real Device

Posted by Helge Becker on Stack Overflow See other posts from Stack Overflow or by Helge Becker
Published on 2011-02-23T07:22:26Z Indexed on 2011/02/23 7:25 UTC
Read the original article Hit count: 244

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?

© Stack Overflow or respective owner

Related posts about ios

Related posts about iphone-sdk-3.0