Hello,
So, I suspect I need to read the memory management guide, and thankfully I have printed it out. And I shall read it in all its glory tomorrow. In the meantime though, can I ask something?
my AppDelegate creates a single object known as Game. Game then creates two objects; Data, and View, which do what their names imply.
In Games dealloc, it calls both [data release] and [view release]. Unfortunately, while data's dealloc method is getting called just fine, views dealloc method isn't. Moreover, if I then call [view release] a second time, I get a crash because view is already released!
How can view already be released if it's dealloc method isn't getting called? But then when called again the dealloc method works but crashes...?
Any help would be greatly appreciated.
Cheers,
Tom
So, I suspect I need to read the memory management guide, and thankfully I have printed it out. And I shall read it in all its glory tomorrow. In the meantime though, can I ask something?
my AppDelegate creates a single object known as Game. Game then creates two objects; Data, and View, which do what their names imply.
In Games dealloc, it calls both [data release] and [view release]. Unfortunately, while data's dealloc method is getting called just fine, views dealloc method isn't. Moreover, if I then call [view release] a second time, I get a crash because view is already released!
How can view already be released if it's dealloc method isn't getting called? But then when called again the dealloc method works but crashes...?
Any help would be greatly appreciated.
Cheers,
Tom