AddMiorph causes VM coma?
Hi Blake,
It looks like your son found a good one.* Can he do
it again?
And can you explain how to reproduce the error?
I tried it and failed to get stopped. Which is not
surprising.
What I did was:
(In a fresh squeak 3.10 version 7159, opened with a
mac classic vm 3.8.9beta7)
Dropped a .gif file on the image (which gave me a
sketch morph)
Opened a workspace (Worldmenu>open>workspace) and
from the menu in the title bar set
create textual references to dropped morphs to true
then I dropped the sketch onto the workspace (which
created a textual reference to the morph in my case
sketch3255)
wrote, selected and did a "print it" on
'World addMorph: sketch3255' .
This caused me no problems.
I then deleted the sketch; reselected the phrase and
did it again.
Still no problems.
-----
What did your son do different? Can you supply a
report similar in detail to the above?
If you can show how to reproduce the problem then
someone may be able to help you track down the
trouble.
Yours in curiosity and service,
Jerome Peace
*My imaginary friend Puck says "A troublesome bug is
its own reward."
Puck is an essential part of my bug finding team.
His additude is that crashing the system is a good way
to improve it.
See:
http://wiki.squeak.org/squeak/5915Game of Mantis
and also
http://www.folklore.org/StoryView.py?project=Macintosh&story=Make_a_Mess,_Clean_it_Up!.txtfor a neat Burell Smith story.
***
>Blake blake at kingdomrpg.com
>Mon Dec 31 02:47:50 UTC 2007
>
>Hello, all,
>
> My son is working with morphs and has a sketchmorph
sublcass that he's
>adding to the World like this:
>
>World addMorph: aCity.
>
> This causes Squeak to go away and never come back.
Alt+. does not work.
>When I debug, it seems to hang up in the CopyReplace
code of the AddMorph
>routine. I've put halts in his initialize code
thinking he's looping
>somehow but I sure can't see it. I can run the
CopyReplace code once, then
>the VM goes back to that code, and if it tries to run
it again, it hangs
>up. It's trying to replace with a start of 2 and a
stop of 1, but that
>appears to be a legimate "add".
>
> I'm kind of stumped as to where to look.
>
> ===Blake===
***
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs