• 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: Does cocoa just leak?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does cocoa just leak?


  • Subject: Re: Does cocoa just leak?
  • From: "John C. Randolph" <email@hidden>
  • Date: Sat, 29 Sep 2001 22:10:44 -0700

On Saturday, September 29, 2001, at 08:37 PM, Rosyna wrote:

To test my class I was doing:

for (i=0;i<5000;i++)
[instance URL];

This causes mem usage to go up about 500k. Thats not too bad, i guess. I set the URL thats returned to autorelease inside the class. However, doing:

Remember that -autorelease doesn't release an object, it puts it in the autorelease pool, so that it will get a -release message when the pool is released. In this loop, there's no opportunity for the autorelease pool to send the -release messages.

-jcr


"I fear all we have done is to awaken a sleeping giant and fill him with a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.


References: 
 >Does cocoa just leak? (From: Rosyna <email@hidden>)

  • Prev by Date: Re: Does cocoa just leak?
  • Next by Date: Re: Does cocoa just leak?
  • Previous by thread: Re: Does cocoa just leak?
  • Next by thread: Re: Does cocoa just leak?
  • Index(es):
    • Date
    • Thread