NSAutoreleasePool
NSAutoreleasePool
- Subject: NSAutoreleasePool
- From: Jonathan Wight <email@hidden>
- Date: Sun, 17 Feb 2002 22:55:57 -0600
I've just been spending a fair chunk of today debugging a problem where I
was neglecting to retain a NSDirectoryEnumerator which I got from a
NSFileManager enumeratorAtPath message... The program would always segfault
at the release of my Foundation tool's NSAutoreleasePool. Which corresponded
to the autorelease pool dealloc-ing the enumerator which I had previously
dealloced.
Now the bug was totally my fault but despite trying as hard as I could I was
unable to gleen any information from the runtime concerning what was causing
the problem (I even posed a NSObject subclass to help me debug the ref
counting ).
I have learnt my lesson but I can't guarantee I won't do a similar thing
again a month from now. Is there some way to actually find out what object
NSAutoreleasePool was choking on?
Cheers.
Jon.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.