Hi Norbert,
I hope the following code will make clear this "strange" behaviour.

| i delay |
i := 0.
delay := Delay forMilliseconds: 1000.
Transcript clear.
10 timesRepeat: [Transcript cr; show: (i := i + 1). delay wait].
SmalltalkImage current snapshot: true andQuit: true.
10 timesRepeat: [Transcript cr; show: (i := i + 1). delay wait].

you see this "strange" behaviour because all threads are suspending when
you are closing your image and resuming when you're opening it again.
When you're opening your "deploy" image the last line of code in
MySetup>>deploy method is executing and image is closing again.

I hope it'll help you.

George.

Hi,

I'm trying to save an image under a different name. I
have a image I'm working with (e.g. VNC enabled) and I
like to create a derived image under a different name.

I use

MySetup>>deploy
        RFBServer doStopServer.
        SmalltalkImage current closeSourceFiles.
        SmalltalkImage current saveChangesInFileNamed: 'base-deploy.changes'.
        SmalltalkImage current saveImageInFileNamed: 'base-deploy.image'.
        SmalltalkImage current snapshot: false andQuit: true

I can still use my working image but if I try to start
the base-deploy.image it quits immediately. I tried different settings but the result is similar. Every time I save and quit the image from a method or a doit I get this result. But if I just use

SmalltalkImage current snapshot: true andQuit: true

in the workspace everything is fine.

Norbert



_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners



_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to