Thank you very much Damien :-) we will do that 2016-02-29 14:21 GMT+01:00 Damien Cassou <damien.cassou@inria.fr>:
Guillaume Larcheveque <guillaume.larcheveque@gmail.com> writes:
I want to run the generation of a mooseModel in a new image with a new vm process (To avoid freezing or occupying space of my first one and also have more available memory).
this is what happens for the launcher and it works on Windows:
execute self needsSpurVm ifTrue: [ context singleImage launch: self class spurFullPath ] ifFalse:[ context singleImage launch: self class vmFullPath]. self class quitOnLaunch ifTrue: [ self quit ]
PhLImage>>launch: aFullPathString "Use the VM that launched the current image to launch me"
^ OSProcess command: (self launchCommandWith: aFullPathString)
launchCommandWith: aFullPathString | command vmCommand imagePath | vmCommand := aFullPathString isEmpty ifTrue: [ Smalltalk vm fullPath asString ] ifFalse: [ aFullPathString ]. imagePath := file pathString. command := $" asString , vmCommand , '" "' , imagePath , '"'. ^ command
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill
-- *Guillaume Larcheveque*