Re: Does cocoa just leak?
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.