<div class="gmail_quote">On Sun, Feb 22, 2009 at 1:38 PM, Klaus D. Witzel <span dir="ltr"><<a href="mailto:klaus.witzel@cobss.com">klaus.witzel@cobss.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes, "classic" Hydra loads the second .image from file and mitosis Hydra populates (the second) an empty .image from am arrayOfObjects passed in.</blockquote><div><br>Ok...this is just, well, fun, but I can't quite figure out how to get a second image loaded with the #doIt channel "working." I figure it's because I don't have the image I created it from set up right? All I did was go down the line of in the Helpful doits workspace:<br>
<br>"Sanity check, are we running HydraVM?"<br>HydraVM isHydra [true]<br><br>"To prepare an image for running in background thread (careful, VM will quit if you run this)"<br>HydraVM saveAsHeadlessImage: 'test.image' [current image shut down and created another image]<br>
<br>"To run previously prepared image"<br>HydraVM loadAndRunNewImage: 'test.image' [seemed to work]<br><br>"How many interpreters VM currently running"<br>HydraVM interpreterInstanceCount [2...this is good!]<br>
<br>"Test to check if main image listening for #transcript channel ..."<br>HydraChannel send: 'Transcript test' to: (HydraInterpreter current) channel: #transcript [true after the following line]<br><br>
"... if not, try doing this first: "<br>HydraTranscript install<br><br>"Simple test to check if second image listens #doIt channel "<br>HydraChannel hasChannel: #doIt at: (HydraInterpreter at: 2) [false]<br>
<br>Drat!!!<br><br>" ... and has Transcript global var replaced to redirect all input to main image"<br>(HydraInterpreter at: 2) doIt: 'Transcript show: ''Doit Test''' <br><br>"Do you like to install something to secondary image?"<br>
(HydraInterpreter at: 2) doIt: '(HTTPSocket httpGet: ''<a href="http://installer.pbwiki.com/f/Installer.st'">installer.pbwiki.com/f/Installer.st'</a>') fileIn ' <br><br>"Do you like to save it? "<br>
(HydraInterpreter at: 2) doIt: 'Smalltalk snapshot: true andQuit: false '<br><br><br>Take care,<br><br>Rob<br></div></div><br>