On 23 April 2013 21:47, Sean P. DeNigris <[email protected]> wrote: > Luc Fabresse wrote >> @Igor. >> It will not work here I think. >> because you make the shallow copy before initializing the process and the >> finalize message is then sent to the copy. > > Yes, I had to copy the process variable to the copy, but it just gets uglier > and uglier... > copy := self copy. > process := self class createProcessFor: copy. > copy process: process. > WeakRegistry default add: self executor: copy. > well, #createProcessFor: implies that copy get's the pointer to process. no need to pass it back to sender.
> > > ----- > Cheers, > Sean > -- > View this message in context: > http://forum.world.st/Terminating-a-Process-when-an-object-dies-tp4683036p4683183.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > -- Best regards, Igor Stasenko.
