Re: Newbie question: how to release an object that has been autoreleased
Re: Newbie question: how to release an object that has been autoreleased
- Subject: Re: Newbie question: how to release an object that has been autoreleased
- From: Scott Stevenson <email@hidden>
- Date: Wed, 22 Sep 2004 18:44:21 -0700
On Sep 22, 2004, at 12:02 PM, Frederick Cheung wrote:
Ah ok, we're actually talking about completely different things. What
I was saying was that if you autorelease an object that has been sent
to another thread via CFMessagePort, MPQueue etc... there is no
guarentee that the autorelease pool won't have done the releaseing
before the other thread gets the object.
Scanning through the thread, I've seen several comments along these
lines, but I've always been under the impression that doing
retain/autorelease extends the object's lifetime in the scope of the
caller (assuming the pools are setup correctly). So unless I'm missing
something, that negates the issue completely.
Or are we all saying the same thing?
- Scott
--
Tree House Ideas
http://treehouseideas.com/
_______________________________________________
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