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

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

[Octave-bug-tracker] [bug #53802] octave deadlocks with deletefcn callba


From: Rik
Subject: [Octave-bug-tracker] [bug #53802] octave deadlocks with deletefcn callback that calls graphical function
Date: Tue, 1 May 2018 18:40:08 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #53802 (project octave):

                Priority:              5 - Normal => 3 - Low                

    _______________________________________________________

Follow-up Comment #1:

Confirmed.  It probably isn't a very common occurrence so I lowered the
priority, but this should work.  I actually wrote a little m-file mydel.m for
testing


function mydel (h)
  keyboard;
  btn = questdlg ('Do you want to quit');
  if (strcmp (btn, 'Yes'))
    delete (h);
  endif
endfunction


I then used 


figure ('deletefcn', @mydel)


and finally closed the figure.

stepping through the code, the problem was the call to questdlg.

Incidentally, using the FLTK toolkit a dialog was correctly shown so this is
likely to be a cross-thread issue with Qt.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53802>

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




reply via email to

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