MathGroup Archive 1997

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

Search the Archive

Re: More: tantamount error messages when interupting

  • To: mathgroup at
  • Subject: [mg8655] Re: [mg8607] More: tantamount error messages when interupting
  • From: seanross at
  • Date: Fri, 12 Sep 1997 04:11:08 -0400
  • Sender: owner-wri-mathgroup at

K. Nikolaj Berntsen wrote:

> I have the annoying problem, that once in a while when I interrupt a
> calculation with <alt>+<.> MMA3.0 start splurting out error messages in
> the messages window:

> Obviously I do not care about this message and just want to correct my
> typo without having to wait for mathematica to finish its messages.
> It can take literally hours on a pentium 150 to finish, it can even
> crash mathematica (linux does not crash :-)
> Is there a way to turn off the messages? Can I get of this annoying
> feature by upgrading to 3.01?
> Happy computing,
> Nikolaj
I have also noticed this problem, but only in a small way because I try
and deal exclusively with functions, subroutines and transformations.  I
have very few cells with procedural lines of code not wrapped in some
kind of larger construct.
When you abort using alt+., only the "current level" is aborted.  For
example, put two separate function calls each in their own cell.  Run
both and "abort" in the middle of the first one.  The second one still
runs.  By the same token, if you have 100 separate lines of code in a
cell and "abort" during the execution of line 25, there are still 75
lines of code that will attempt execution, but without the benefit of
the correct output from line 25 and multiple error messages will
result.  Put the same 100 lines of code inside a function construct like
f[x_,y_,...]:=Module[{private variables,...},body;Return[answer]];
and far fewer messages will result if you abort during the execution of
f.  Even fewer if you trap likely errors with Check,Catch and Throw and
If inside your code.

  • Prev by Date: Re: Something like Flatten
  • Next by Date: Re: interpolating f(x,y) from evaluation
  • Previous by thread: More: tantamount error messages when interupting
  • Next by thread: Re: More: tantamount error messages when interupting