• 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: Newbie question: how to release an object that has been autoreleased
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Newbie question: how to release an object that has been autoreleased (From: James Bucanek <email@hidden>)
 >Re: Newbie question: how to release an object that has been autoreleased (From: John Mikros <email@hidden>)
 >Re: Newbie question: how to release an object that has been autoreleased (From: Ondra Cada <email@hidden>)
 >Re: Newbie question: how to release an object that has been autoreleased (From: Frederick Cheung <email@hidden>)
 >Re: Newbie question: how to release an object that has been autoreleased (From: Ondra Cada <email@hidden>)
 >Re: Newbie question: how to release an object that has been autoreleased (From: Frederick Cheung <email@hidden>)

  • Prev by Date: menu & multiple windows
  • Next by Date: Re: Unit testing framework suggestions?
  • Previous by thread: Re: Newbie question: how to release an object that has been autoreleased
  • Next by thread: NSProgressIndicator color
  • Index(es):
    • Date
    • Thread