• 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: +[NSData dataWithContentsOfURL:] leaks memory?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: +[NSData dataWithContentsOfURL:] leaks memory?


  • Subject: Re: +[NSData dataWithContentsOfURL:] leaks memory?
  • From: Daniel Jalkut <email@hidden>
  • Date: Tue, 06 Dec 2005 10:46:55 -0500


On Dec 6, 2005, at 9:21 AM, Mike Morton wrote:

On my 10.3.x system, it never seems to release much memory. I ran 1,000 iterations and it grew from 32824K to 144920K. Most jumps were 112K, the size of the downloaded image. Memory dropped by as much as 104K and grew by as much as 320K in a single iteration.

MallocDebug does show this tool allocating memory and not freeing it. I think 'leaks' is silent because some cache is pointing to the memory.

Well, for what it's worth (not much to you since you're supporting 10.3) I don't see the leaks in MallocDebug running on 10.4.3. Hopefully this means Apple fixed something.

I’d be interested in hearing more ideas, but I think it’s time to use a DTS incident on this one…

Hmm! Sounds like it...

Daniel

_______________________________________________
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: 
 >+[NSData dataWithContentsOfURL:] leaks memory? (From: Mike Morton <email@hidden>)
 >Re: +[NSData dataWithContentsOfURL:] leaks memory? (From: Daniel Jalkut <email@hidden>)
 >Re: +[NSData dataWithContentsOfURL:] leaks memory? (From: Mike Morton <email@hidden>)

  • Prev by Date: Re: Generation of a Waveform
  • Next by Date: NSLog and NSBezierPath etc...
  • Previous by thread: Re: +[NSData dataWithContentsOfURL:] leaks memory?
  • Next by thread: Re: +[NSData dataWithContentsOfURL:] leaks memory?
  • Index(es):
    • Date
    • Thread