Levente Uzonyi pisze:
> If the process has a strong reference to your morph (via self, a local
> variable, etc), or any other object referencing your morph (e.g. the
> home context of the block of the process), then the morph won't get
> garbage collected while the process is running. If it only has a weak
> reference to the morph, then it can check if the morph got garbage
> collected (the weak reference became nil), and terminate normally.
> 
> 
> Levente
> 

Oh, so that's the reason the finalization didn't work. I suppose I need
to split the morph into two and keep a weak reference between them. Thanks!
Mateusz
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to