• 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
Re: NSSound and _NSAutoreleaseNoPool() - just leaking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSound and _NSAutoreleaseNoPool() - just leaking


  • Subject: Re: NSSound and _NSAutoreleaseNoPool() - just leaking
  • From: Clark Cox <email@hidden>
  • Date: Fri, 7 Jan 2005 09:00:50 -0500

On Fri, 7 Jan 2005 13:14:48 +0100, wuffwuffware <email@hidden> wrote:
> Dear list,
>
> I am adding the following line of code to my project:
>
> _endSound =  [[NSSound soundNamed: @"timerAlong"] retain];
>
> and when I terminate my application I end up with the messages below in
> the console. The number of sounds I load does not matter. Removing this
> one line and the messages dont show up when I call [NSApp terminate:
> nil].
> Wrapping the _endSound into a NSAutoreleasePool did not help.
>
> Any pointer how to tackle the problem is greatly welcome.

The very first thing I would try would be to run under the debugger,
and put a breakpoint on _NSAutoreleaseNoPool to see exactly where this
autorelease is getting called. I suspect that what is happening is
that in some object's -dealloc method some objects are autoreleased,
but that this object is being deallocated *after* the last autorelease
pool has been destroyed.


--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSSound and _NSAutoreleaseNoPool() - just leaking (From: wuffwuffware <email@hidden>)

  • Prev by Date: RE: Contextual menus in Outline Views
  • Next by Date: Re: How to find autorelease bug
  • Previous by thread: NSSound and _NSAutoreleaseNoPool() - just leaking
  • Next by thread: Re: NSSound and _NSAutoreleaseNoPool() - just leaking
  • Index(es):
    • Date
    • Thread