OSProcess weirdness

Jon Hylands jon at huv.com
Wed Nov 28 23:48:42 UTC 2007


On Wed, 28 Nov 2007 11:08:27 -0500, Jon Hylands <jon at huv.com> wrote:

> So it looks like the release for dependents isn't working in
> OSProcessAccessor >> #startUp:

So, it looks like a bug. I changed: ThisOSProcess >> #initialize

It used to say:

processAccessor removeDependent: self.

and I changed it to say:

processAccessor breakDependents.

The problem is that if you're running on a different OS, the receiver is
not the dependent. The receiver is actually an instance of WindowsProcess
when the image is saved, but when it is resumed, it gets replaced by an
instance of UnixProcess. The process accessor has the windows process as a
dependent, so the removeDependent: call does nothing.

Hopefully David will read this and figure out how to fix it properly...

Later,
Jon

--------------------------------------------------------------
   Jon Hylands      Jon at huv.com      http://www.huv.com/jon

  Project: Micro Raptor (Small Biped Velociraptor Robot)
           http://www.huv.com/blog



More information about the Squeak-dev mailing list