Q: Restart the image
Out of curiosity: Is it possible to restart the image from within the image itself - that means end the ST session and start the VM with the same image again? Thx T.
Hello, One possibility is to save, then open again the current image with OSProcess, lastly close the first image. This would work for sure. The code would look like: Smalltalk snapshot: true andQuit: false. OSProcess executeInCommandLine: './pharo myImage.image'. Smalltalk snapshot: false andQuit: true. I do not remember how OSProcess works. I also do not remember how to get the path of the current image and VM to generate the proper command line instruction... But it should work. 2014-02-25 15:24 GMT+01:00 Torsten Bergmann <astares@gmx.de>:
Out of curiosity:
Is it possible to restart the image from within the image itself - that means end the ST session and start the VM with the same image again?
Thx T.
participants (2)
-
Clément Bera -
Torsten Bergmann