[Thread Prev] [Thread Next]
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:
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.
|