error while evaluating ui control feedback

3 views (last 30 days)
I am trying to run code for a set of scripts that are created for a listening experiment (psychoacoustics). I get this error:
Error using close
Reference to non-existent field 'allowed_to_close'.
Error in close
Error in mainmenu>men_close_Callback (line 546)
close all
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in mainmenu (line 80)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)mainmenu('men_close_Callback',hObject,eventdata,guidata(hObject))
Caused by:
Error while evaluating figure CloseRequestFcn
Error while evaluating Menu Callback.
Error using close
Reference to non-existent field 'allowed_to_close'.
Error in close
Error in load_test_series (line 38)
close all
Error in open_test_series>pb_open_Callback (line 140)
load_test_series(opentestseriespath);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in open_test_series (line 74)
gui_mainfcn(gui_State, varargin{:});
Caused by:
Error while evaluating figure CloseRequestFcn
Error while evaluating UIControl Callback.
>>
  2 Comments
Rik
Rik on 17 Feb 2020
There is a field allowed_to_close that isn't set when another function calls close all. Why a GUI would contain that in the first place is a bit puzzling, since all relevant handles should be available, so you can explicitly close windows you don't need anymore.
Marius Tøndel Eliassen
Marius Tøndel Eliassen on 17 Feb 2020
Ok, thanks for your answer I will try that.

Sign in to comment.

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!