AddMiorph causes VM coma?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

AddMiorph causes VM coma?

Blake-5
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===

Reply | Threaded
Open this post in threaded view
|

Re: AddMiorph causes VM coma?

Tom Phoenix
On Dec 30, 2007 6:47 PM, Blake <[hidden email]> wrote:

>         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.

How rude! But I hope you might get better results with this:

   aCity openInWorld.

Good luck with it!

--Tom Phoenix