• 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
NSData being retained?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSData being retained?


  • Subject: NSData being retained?
  • From: Jim Ways <email@hidden>
  • Date: Thu, 22 Jul 2004 11:13:13 -0700 (PDT)

NSURL* aUrl = [NSURL URLWithString:urlString];
NSData *data = [aUrl resourceDataUsingCache:NO];
[aUrl release];

This allocates memory but never releases it, if i
[data release]; i get a bus error. If i set data to
nil i still get an increase in memory each loop. The
contents of data dont seem to increase with each cycle
but i cant track down where the memory is comming
from. Thanks in advance.




__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSData being retained?
      • From: Shawn Erickson <email@hidden>
    • Re: NSData being retained?
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: NSArrayController bindings
  • Next by Date: Re: NSArrayController bindings
  • Previous by thread: Re: NSArrayController bindings
  • Next by thread: Re: NSData being retained?
  • Index(es):
    • Date
    • Thread