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

Leak Hunting and Object Alloc


  • Subject: Leak Hunting and Object Alloc
  • From: Skip Haughay <email@hidden>
  • Date: Thu, 23 Nov 2006 06:33:59 -0800

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

  • Follow-Ups:
    • Re: Leak Hunting and Object Alloc
      • From: j o a r <email@hidden>
    • Re: Leak Hunting and Object Alloc
      • From: "Julien Jalon" <email@hidden>
  • Prev by Date: Re: Re: How to set the color of a string on a NSButton?
  • Next by Date: Rendering strokes without using NSBezierPath
  • Previous by thread: Default TextField size in NSForm?
  • Next by thread: Re: Leak Hunting and Object Alloc
  • Index(es):
    • Date
    • Thread