• 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: I think I am leaking! :)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I think I am leaking! :)


  • Subject: Re: I think I am leaking! :)
  • From: Andrew Platzer <email@hidden>
  • Date: Sat, 27 Oct 2001 13:40:03 -0700

On Saturday, October 27, 2001, at 01:48 , Steven W. Riggins wrote:
I call this from windowDidLoad in my NSWindowController subclass.
When looking at my app with ObjectAlloc, I see 51 NSHTTPURLHandles. Looking in the instance browser tab, I see two events per instance, an AllocationEvent and an ObjectAutoreleasedEvent, but no release/dealloc.
This is boiled down from my larger issues, but trying to find out how I should be releasing the data from the NSURL has become an obsession :)

I'm surprised that you get an AllocationEvent and an ObjectAutoreleasedEvent but no subsequent actual release. It's as though the autorelease pool isn't being freed. This should happen each time you return from handling an event in NSApplication. I looked through the NSURL and NSHTTPURLHandle and didn't see any obvious leaks.

Check with MallocDebug or the leaks tool to see if the objects are really leaked or someone is holding on to an extra reference. If not, try putting your own NSAutorelease pool around the loop and see if that helps.

Andrew
__________________________________________________________________
A n d r e w P l a t z e r
A p p l i c a t i o n F r a m e w o r k s
A p p l e


  • Follow-Ups:
    • Re: I think I am leaking! :)
      • From: "Steven W. Riggins" <email@hidden>
References: 
 >I think I am leaking! :) (From: "Steven W. Riggins" <email@hidden>)

  • Prev by Date: Re: Widget Repository?
  • Next by Date: Re: Widget Repository?
  • Previous by thread: I think I am leaking! :)
  • Next by thread: Re: I think I am leaking! :)
  • Index(es):
    • Date
    • Thread