• 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
Weird NSZombie memory leak issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird NSZombie memory leak issue


  • Subject: Weird NSZombie memory leak issue
  • From: Rory Prior <email@hidden>
  • Date: Mon, 7 Nov 2005 00:18:31 +0000

Greetings all,

I recently discovered the command line tool 'leaks' and I've been using it to try and identify and remove memory leaks from my Cocoa app. Thing is I'm getting an awful lot of really strange leaks all of objects whose names are prefixed by NSZombie_

Here is a short example:

Process 5552: 32569 nodes malloced for 4175 KB
Process 5552: 1980 leaks for 87344 total leaked bytes.
Leak: 0x02879600  size=1536     instance of 'NSZombie_NSConcreteData'
Leak: 0x0287da00  size=1536     instance of 'NSZombie_NSConcreteData'
Leak: 0x011cd680  size=240      instance of 'NSZombie_NSWindowAuxiliary'
Leak: 0x04a74510  size=240      instance of 'NSZombie_NSWindowAuxiliary'
Leak: 0x04a27770  size=240      instance of 'NSZombie_NSWindowAuxiliary'
Leak: 0x04a71640  size=240      instance of 'NSZombie_NSWindowAuxiliary'
Leak: 0x04a92990  size=240      instance of 'NSZombie_NSWindowAuxiliary'
Leak: 0x04a934b0  size=240      instance of 'NSZombie_NSWindowAuxiliary'
Leak: 0x04a98a50  size=240      instance of 'NSZombie_NSWindowAuxiliary'
...

Nearly all the leaked objects sound like they are private and part of AppKit.

I've checked my project several times over to see if I've got NSZombieEnabled enabled and I haven't, I've even specified it as turned off but it seems to have no effect. So my question is whether this is normal behaviour for the leaks tool or is something really screwy going on? Are all my autoreleased objects getting leaked for some reason?

Just as an FYI I've got the latest dev tools and I'm running on 10.4.3 incase that makes a difference.

Cheers,

Rory
--

ThinkMac Software
http://www.thinkmac.co.uk

_______________________________________________
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


  • Prev by Date: Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around?
  • Next by Date: NSTextView scrolling issue.
  • Previous by thread: Re: Cross platform Cocoa/ObjC?
  • Next by thread: NSTextView scrolling issue.
  • Index(es):
    • Date
    • Thread