Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: stopping a process
From: "Erik Nauman" <ENauman@xxxxxxxxxxxxxxxx>
Date: Thu, 22 Mar 2007 13:58:04 -0400

Thank you, this is very helpful. I think I will go with the backpack
option. In principle the procedures should cancel but there must be some
other variable affecting it I'm not seeing.

Thanks, Erik 

 

________________________________

From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Alain
Tougas
Sent: Thursday, March 22, 2007 1:15 PM
To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: RE: stopping a process

 

Hi there,


This reply is not the "solution" to your issue, just some light to shed
on it.

 

I did try

when [1 = 1] [fd 10]

then

cancel [1 = 1]

while looking at the Process tab (you DO need to look at this tab of
your playing with When), and I could see the process being turned on,
then off. So in that sense,  I'd say that your approach should work.
Just make sure that your "cancel" instruction DOES get executed. Just to
make sure, you may want to add an instruction such as "announce [I got
killed]" right after your cancel instruction. That will be a proof that
it got executed.

 

Secondly, make sure that the input for Cancel is absolutely identical to
the one used for When. Use copy/paste to play safe with this. Looking at
your original message, it looks like you're doing the right thing.

 

Finally, knowing how "costly" this feature is, I would avoid "abusing"
it. Try using "when this, do that" in the turtle's backpack instead.
Generally speaking, it does the job better. So answering your question:
yes, these When processes will adversely affect your project. At 48
processes running, it should already be the case.

 

Sorry if I can't say more right now - I would need more info to go
further.

 

Ciao,

 

Alain

 

-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Erik
Nauman
Sent: March 22, 2007 12:47 PM
To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: stopping a process

 

I'm making a project with several pages and on one page a procedure has
a lot of "when" processes starting such as this:

 

when [touching? "comb "suitcase]

[comb, setsize 30 valise, insert "| comb|]

when [not touching? "comb "suitcase] 

[valise, top

      search "| comb| cut

      comb, setsize 40]

 

Then a button gives the command to go to another page and at that point
I want those processes to stop (there are 48 "when" processes on the
page) to free up memory for the rest of the project. I've tried a lot of
variations of using this command:

 

cancel [touching? "comb "suitcase]

cancel [not touching? "comb "suitcase]

 

in various places and the "when"s just won't stop. Anyone have any
ideas? Maybe having those processes running during the rest of the
project won't adversely affect subsequent processes in the end.

 

Thanks,

Erik Nauman

 


  • Previous by thread: RE: stopping a process
  • Next by thread: RE: stopping a process

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008