iPhone Weird Error
I am getting the following error:
[CALayer superlayer]: message sent to deallocated instance 0xb00afb0
However it isn't giving me a stack trace when it breaks so i have no idea where it is doing this.
Has any one else ever had this error or advise me some better debug开发者_开发问答ging techniques so I can further investigate?
You're over-releasing something. You should probably turn on a debugger to trace the error, or even try running Build/Build and Analyze. That can sometimes catch it.
Typing bt (for backtrace) in the console after it crashes will let you see the stack trace as well. This is often helpful in tracking down some of these issues.
That typically means something is getting over-released. Look at your alloc/init lines, look for places autoreleased objects (particularly UIView subclasses) are getting called perhaps after their pool has drained, etc.
Use NSZombieEnabled
to find the object, that got over-released.
精彩评论