Loading a new image file into an already running session?

Lloyd Zusman ljz at asfast.com
Sat Nov 16 22:32:04 UTC 2002


Although I've been programming in numerous languages for over 32 years,
I'm fairly new to Squeak, and almost as new to Smalltalk in general.
Therefore, perhaps I will soon discover that the answer to the question
I'm about to ask is considered to be hopelessly obvious to the veterans
on this mailing list.

I did some searching through the mailing-list archive, but I couldn't
find an answer.  Therefore, I'm taking to heart that the mailing list
signup page states, "New users are encouraged to ask for help on this
list."

I've been using versions 3.2-5 and 3.2-6devel, and I'm trying to load a
new image file into an already running Squeak session.  However, I
don't know how to do this.

I found the instance method "readImageFromFile: HeapSize: StartingAt:"
in the Interpreter class, but when I try to invoke it, I get a
"doesNotUnderstand:" exception within the Interpreter class's
"checkImageVersionFrom: startingAt:" instance method, at the following
point:

  self sqImageFile: f Seek: imageOffset.

And doing a method search, indeed there are no messages whose names
match the string "sqImageFile".

Therefore, it appears that it's impossible to load a new image file into
an already running Squeak instance.  Perhaps if I had more experience
with Squeak and Smalltalk, I'd know whether or not this is even
something that's meant to be done.

But in case this is indeed a valid operation to perform, what am I doing
wrong?

Thanks in advance.

-- 
 Lloyd Zusman
 ljz at asfast.com



More information about the Squeak-dev mailing list