• 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: Leak Hunting and Object Alloc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leak Hunting and Object Alloc


  • Subject: Re: Leak Hunting and Object Alloc
  • From: "Julien Jalon" <email@hidden>
  • Date: Thu, 23 Nov 2006 19:24:51 +0100

You should check the stack trace for the Released events and see if
there isn't already one that is the delayed release you see in the
autoreleased event.

--
Julien

On 11/23/06, Skip Haughay <email@hidden> wrote:
This is terribly frustrating.

I am attempting too chase down some leaks in my framework.  I am having a difficult time of it.  I have a leak that is being reported in the leaks tool:

Leak: 0x003cf680  size=48       instance of 'com_apple_ist_ds2_pub_common_Name'
        0x053040ac 0x00000000 0x00000000 0x00000000     .0@.............
        0x00000000 0x00000000 0x00000000 0x00000000     ................
        0x00000000 0x003ce5e0 0x00000000 0x00000000     .....<..........

I look in ObjectAlloc and find this object.  I look at the chain of allocation events:
AllocationEvent
ObjectRetainedEvent
ObjectAutoreleasedEvent
ObjectRetainedEvent
ObjectReleasedEvent
ObjectReleasedEvent

Shouldn't this be released when the current autorelease pool is cleared?

Skip

 _______________________________________________

Cocoa-dev mailing list      (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins (at) lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins (at) lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Leak Hunting and Object Alloc (From: Skip Haughay <email@hidden>)

  • Prev by Date: Re: How to set the color of a string on a NSButton?
  • Next by Date: Re: Leak Hunting and Object Alloc
  • Previous by thread: Leak Hunting and Object Alloc
  • Next by thread: Re: Leak Hunting and Object Alloc
  • Index(es):
    • Date
    • Thread