automatic ref counting - WatchKit without ARC causes crash when dealloc -


the watch app developing not using arc. , releases properties of objects in each interface in dealloc below.

-(void)dealloc {    [obj1 release];   [obj2 release];    ...   [super dealloc]; } 

this causes crash when close interface (for example go main interface). why so?

retains , releases need balanced in context of class. didn't retain when assigned 1 of instance variables, , it's over-release. can try enabling zombies catch message deallocated instance if that's case.


Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

java - ConcurrentModificationException upon committing transaction with Hibernate -