• 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
Two threads two autorelease pools one object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two threads two autorelease pools one object?


  • Subject: Two threads two autorelease pools one object?
  • From: "Brian O'Brien" <email@hidden>
  • Date: Wed, 2 Nov 2005 13:57:50 -0700

I've been banging my head on a memory leak...
and it occurred to me that maybe there are two threads and each
has set up their own auto-release pools.
Can you envision this happening?
If one thread calls a method of the other thread to get a reference
to an object is it possible that the instance of the object exists
in two auto-release pools at the same time and an attempt
to free it may occur after the object was freed by the other pool?


_______________________________________________ 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
  • Follow-Ups:
    • Re: Two threads two autorelease pools one object?
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Two NSTableViews acting as one
  • Next by Date: -refreshObject:mergeChanges: - need more transient property flexibility
  • Previous by thread: Re: 10.4 pictureSharing crashes 10.3.8 pictureSharingBrowser
  • Next by thread: Re: Two threads two autorelease pools one object?
  • Index(es):
    • Date
    • Thread