octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54600] edit mfile with an error crashes octav


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #54600] edit mfile with an error crashes octave
Date: Fri, 21 Sep 2018 03:26:32 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Follow-up Comment #8, bug #54600 (project octave):

I think it would be interesting to know if in Matlab "which fcn" leads to an
error when "fcn" happens to not be executable. Personally, what I want when I
use "which fcn" is Octave to answer the question "In which file will you
search for the definition of fcn?". So I would be inclined to change
F__which__ behavior, which would fix this bug.

@Torsten: About comment #4, if you really want an error that doesn't crash the
GUI, you can use a try/catch and rethrow the error as we do when printing:


try
  {
    // Make sure we have a valid current context
    if (! begin_rendering ())
      error ("print: no valid OpenGL offscreen context");
 
    octave::gl2ps_print (figObj, file_cmd.toStdString (),
                                  term.toStdString ());
  }
catch (octave::execution_exception& e)
  {
    octave_link::post_exception (std::current_exception ());
    end_rendering ();
  }
 

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54600>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]