[SPAM] Re: [Newbies] Terminating a process while finalizing
unoduetre at poczta.onet.pl
Wed Dec 11 11:02:03 UTC 2013
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.
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!
More information about the Beginners