MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: "Abort Evaluation" does not work

  • To: mathgroup at
  • Subject: [mg111920] Re: "Abort Evaluation" does not work
  • From: Sseziwa Mukasa <mukasa at>
  • Date: Thu, 19 Aug 2010 07:20:14 -0400 (EDT)

On Aug 18, 2010, at 7:07 AM, Themis Matsoukas wrote:

> I was hoping someone would answer your question because I too find 'Abort Evaluation' to work erratically. For example, the loop below responds to ' Abort Evaluation':
> i == 1;
> While[i <== Infinity, ++i]
> ..but this loop does not:
> i == 1;
> While[i < 1000, Print[i]; ++i]

As far as I can tell abort only works on kernel operations that are designed to be interruptible.  In the first case, the expression is constantly evaluating in the kernel and when it receives the abort message it quits.  In the second case, the kernel probably takes almost no time computing, but the front end has to format 1000 strings.  So when you are submitting the abort command it is actually trying to abort a front end operation: formatting the strings, which cannot happen.  It is also the case that Mathlink routines that don't check the abort messages while computing will not respond to the abort command, some built-in functions seem to have the same behavior.


  • Prev by Date: Re: Saving data with notebook
  • Next by Date: Re: How to make dynamic strings?
  • Previous by thread: Re: "Abort Evaluation" does not work
  • Next by thread: Re: "Abort Evaluation" does not work