[Etoys] etoys image freezing?
polishookm
polishookm at mail.montclair.edu
Sun May 11 21:51:05 EDT 2008
Yoshiki Ohshima wrote:
> At Sun, 11 May 2008 21:11:48 -0400,
> polishookm wrote:
>
>> I'm not sure if it's something I've done or something that's appeared
>> after downloading the last set of code updates. But basically, I'm
>> finding the etoys-dev.image freezes as soon as I accept anything
>> anywhere in the image (in a code browser, in a workspace window, etc.).
>> I've tossed everything and started again from scratch but the same thing
>> keeps happening - the image keeps freezing.
>>
>> ... All advice welcome. Thanks in advance -
>>
>
> Did you:
>
> - update a "clean" image (i.e., an image without any of non official
> update changes)?
>
Starting from this image
http://etoys.laptop.org/src/etoys-dev.zip
I then loaded the 101 or so code updates that come from pressing the
'load code updates' button on the desktop. Then I saved the image (from
the button on the desktop)
Then I went to FileDirectory startup and changed the following line
self setDefaultDirectory: (self dirPathFor: SmalltalkImage current
imageName)
to
self setDefaultDirectory: '/Users/home'
and did Cmd-s (to accept) and entered my initials.
Then after then leaving the browser and going back to the desktop and
opening a workspace, I've found several times that Squeak is frozen.
> - "Accept anything" means a method? What method for what class? In
> a workspace, you mean to evaluate "do it"?
>
But, also, I've also found that after making the change in FileDirectory
as described above, I can freeze Squeak if I open a text file outside of
Squeak and copied and paste a few lines of code from that file to a
workspace.
Here's the code
" Ways to play sound "
SampledSound playSoundNamed: 'this'
s := (SampledSound soundNamed: 'this').
s play.
snd := SampledSound fromAIFFfileNamed: '/Users/home/Desktop/this.aiff'.
snd play.
r := RepeatingSound repeat: s count: 2.
r play
s := (SampledSound soundNamed: 'this').
s samples
Option-clicking on the workspace and accepting the code seems to lead to
a freeze. I'm not sure if I _should be doing this (accepting in a
workspace .... ). I know this would be different than selecting 'doit'.
But I also found too that without the "copy/paste from an external file
series of steps" that changing (in a workspace) this line
SampledSound playSoundNamed: 'this'
to this line
SampledSound playSoundNamed: 'fox'
is freezing Squeak.
> - What do you mean by "tossed everything"? Did you go back to a
> clean image?
>
Yes. I went back several times to the zip file from
http://etoys.laptop.org/src/etoys-dev.zip
and started again (and then again) with fresh files to which I added
Squeakland.app and then downloaded the 101 or so code updates.
> There may be a problem but I haven't seen it with the latest updates.
> Can you elaborate a bit?
>
If I'm not giving you enough information let me know and if they're a
specific sequence of steps I should try, let me know that as well.
Thanks very much in advance.
- Mark
> -- Yoshiki
> _______________________________________________
> Etoys mailing list
> Etoys at lists.laptop.org
> http://lists.laptop.org/listinfo/etoys
>
--
Mark Polishook, D.M.A.
Technology Coordinator
Morehead Hall, Rm 132
Center for Academic Advising and Adult Learning
Montclair State University
Montclair, NJ 07043
(973)-655-7114
http://www.montclair.edu/AcademicAdvising/html
polishookm at mail.montclair.edu
More information about the Etoys
mailing list