• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSAutoreleasePool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • printing at fixed scale
      • From: Steven Rogers <email@hidden>
    • Re: NSAutoreleasePool
      • From: "Erik M. Buck" <email@hidden>
    • Re: NSAutoreleasePool
      • From: "Erik M. Buck" <email@hidden>
  • Prev by Date: Re: COCOA API book with examples?
  • Next by Date: Re: NSAutoreleasePool
  • Previous by thread: JavaSpace like framework in Cocoa?
  • Next by thread: Re: NSAutoreleasePool
  • Index(es):
    • Date
    • Thread