On Tue, Sep 25, 2012 at 03:52:08PM -0400, David T. Lewis wrote:
On Tue, Sep 25, 2012 at 12:23:38PM -0700, Paul DeBruicker wrote:
Hi-
Where can I find the latest XDisplayControlPlugin? Is this it: http://wiki.squeak.org/squeak/3350 ?
That's my original "home page" for XDisplayControlPlugin. The code is now kept on SqueakSource:
http://www.squeaksource.com/XDCP
I was trying to run
UnixProcess saveImageInBackgroundNicely
in Pharo-1.4 using both Eliots and the inria vm's but can't because I don't have the aforementioned plugin.
I'm not sure if this works on Cog. I think it should work, but I'm away and can't check for sure. But FYI #forkSqueak has some limitations on Cog, e.g. you cannot fork a vm/image and reopen the display in the child.
Paul, Sorry I had forgotten the details on this. Yes, it is necessary to have XDisplayControlPlugin in order to do a saveImageInBackgroundNicely, because the interaction with the X11 server must be turned off in the child VM process. Without that, the child will do things that interfere with the original VM, leading to a VM crash. XDisplayControlPlugin will compile and run under Cog, but the necessary hooks are not in place in the support code, and the primitives will fail. The bottom line is that at the present time #saveImageInBackgroundNicely works only on an interpreter VM. Dave