Skip navigation.
 
mlRe: Garbage collection problem
FROM : Jonathon Mah
DATE : Wed Jan 09 12:57:27 2008

Hi,

On 2008-01-09, at 21:15, Dent John wrote:

> For example, in a classes init method, I get it to NSLog the self 
> pointer. Then, after some time, I see errors relating to the class.



Are you storing a reference to that instance in a "strong" location, 
such as a global variable? Otherwise the garbage collector has no idea 
that it might be used later on.



Jonathon Mah
<email_removed>

Related mailsAuthorDate
mlGarbage collection problem Dent John Jan 9, 11:45
mlRe: Garbage collection problem Jonathon Mah Jan 9, 12:57
mlRe: Garbage collection problem Dent John Jan 9, 14:24
mlRe: Garbage collection problem Clark S. Cox III Jan 9, 14:54
mlRe: Garbage Collection Problem Jonathan Dann Jan 9, 15:40
mlRe: Garbage collection problem mmalc crawford Jan 9, 16:55
mlRe: Garbage Collection Problem Dent John Jan 10, 10:27
mlRe: Garbage Collection Problem Bill Bumgarner Jan 10, 17:58
mlRe: Garbage Collection Problem Clark Cox Jan 10, 22:20
mlRe: Garbage collection problem Dent John Jan 13, 11:47