While[ 1==1,
Print["Hi"]
]
How do I stop this thing from running. Is there a CTRL-C in math.
Thanks!
I am using Mathematica 5.0
You could try the Alt+. or Alt+, (Cmd+. and Cmd+, on Mac) or goto menu
Evaluation, then choose either Abort Evaluation or Interrupt Evaluation.
Regards,
-- Jean-Marc
Cheers -- Sjoerd
a) your While[ 1==1, Print["Hi"]] cause the kernel to send a lot of
data to the FrontEnd and the FrontEnd must format it again and
again for every new cell. So the FrontEnd is busy and it is
hard for it to send a Abort message to the Kernel.
I would suggest to use Dynamic[] to show the progress in a variable, i.e.,
mymessage = "Wait";
Dynamic[mymessage]
i = 0;
While[True,
mymessage = If[EvenQ[i++], "Humpty", "Dumpty"];
]
b) if you do so, Alt-"." as well as the menu entry
Evaluation | Abort Evaluation work
c) if not, you have to press Alt-. several times and
hope the the FrontEnd will get it and that the buffer
with all the Print[] messages is not too full
Regards
Jens
Steven Siew
http://media.wolfram.com/brochures/mathematicashortcuts.pdf
ABORT is ALT+.
INTERRUPT is ALT+,
For windows that is
Sometimes if the FrontEnd will not respond to Alt-. or Abort Evaluation,
you can shut down the kernel completely from Evaluation, Quit Kernel,
Local. Of course, that clears everything that you had in memory.
--
Helen Read
University of Vermont
that is a bit rude, what is with killing the Kernel, the FrontEnd
and reboot the computer ;-)
Regards
Jens
I like to show my students early in the year how to crash Mathematica,
as a way of encouraging them to save their file while they work :-).