Skip navigation.
 
mlRe: Crash when dispaying document in iChat Theater
FROM : Antonio Nunes
DATE : Mon Apr 21 19:32:36 2008

On Apr 21, 2008, at 5:52 PM, Quincey Morris wrote:

> If d is a local variable, as this code fragment seems to say, what's 
> keeping it (and therefore d.someView) from getting garbage collected 
> as soon as it goes out of scope? 'setVideoDataSource' is documented 
> to *not* retain the view (in non-GC), and I would take such a 
> statement to mean that it does not hold a keep-alive reference to 
> the object (in GC) either.


d is a local variable indeed, but it is just an intermediate 
instrument, one that points to a document that is held' by the 
document controller. The object d points to remains connected to a 
root object by being held by the controller.

Just in case: turning of the collector for variable d doesn't make a 
difference. Stil crashes.

António

-----------------------------------------------------------
And you would accept the seasons of your
heart, even as you have always accepted
the seasons that pass over your field.

--Kahlil Gibran
-----------------------------------------------------------

Related mailsAuthorDate
mlCrash when dispaying document in iChat Theater Antonio Nunes Apr 21, 14:18
mlRe: Crash when dispaying document in iChat Theater Kevin Grant Apr 21, 17:55
mlRe: Crash when dispaying document in iChat Theater Antonio Nunes Apr 21, 18:36
mlRe: Crash when dispaying document in iChat Theater Quincey Morris Apr 21, 18:52
mlRe: Crash when dispaying document in iChat Theater Antonio Nunes Apr 21, 19:32
mlRe: Crash when dispaying document in iChat Theater Quincey Morris Apr 21, 20:25