Two threads two autorelease pools one object?
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