octave-maintainers
[Top][All Lists]
Advanced

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

Re: Problem with try/catch statement: catch clause not evaluated


From: Michael Goffioul
Subject: Re: Problem with try/catch statement: catch clause not evaluated
Date: Fri, 7 Sep 2007 16:02:11 +0200

On 9/7/07, Michael Goffioul <address@hidden> wrote:
> and push the button, the try clause is evaluated up to the "sin" call,
> then nothing more. The catch clause is not evaluated. The callback
> execution is done in the main octave thread, during a readline input
> event hook (set in __java__.cc through command_editor::set_event_hook),
> using "feval".

After debugging a little bit, it turns out that this is due to the non-zero
value of octave_interrupt_immediately, which is set just before starting
to read a line with readline, in gnu_readline::do_readline. This prevents
the catch clause to be evaluated.

What should I do? Reset octave_interrupt_immediately to 0 before
executing the callback? Is it safe?

Michael.


reply via email to

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