Error message after changing the string in GUI
Afficher commentaires plus anciens
I was trying to modify the GUI design of a software. At first, I just modified a string (deleted a word from its original text) on the existing GUI figure (.fig) and saved the figure. Without any other changes, I got a huge list of error messages when I run this GUI figure which contains the modified string. The error messages are:
Struct contents reference from a non-struct array object.
Error in OMCE_gen>uipanel6_ResizeFcn (line 1381) genpos = get(handles.figure_gen,'Position');
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in OMCE_gen (line 72) gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)OMCE_gen('uipanel6_ResizeFcn',hObject,eventdata,guidata(hObject))
Error using matlab.graphics.internal.figfile.FigFile/read (line 31) Error while evaluating Panel SizeChangedFcn
Struct contents reference from a non-struct array object.
Error in OMCE_gen>uipanel3_ResizeFcn (line 1351) genpos = get(handles.figure_gen,'Position');
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in OMCE_gen (line 72) gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)OMCE_gen('uipanel3_ResizeFcn',hObject,eventdata,guidata(hObject))
Error using matlab.graphics.internal.figfile.FigFile/read (line 31) Error while evaluating Panel SizeChangedFcn
Struct contents reference from a non-struct array object.
Error in OMCE_gen>uipanel1_ResizeFcn (line 1321) genpos = get(handles.figure_gen,'Position');
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in OMCE_gen (line 72) gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)OMCE_gen('uipanel1_ResizeFcn',hObject,eventdata,guidata(hObject))
Error using matlab.graphics.internal.figfile.FigFile/read (line 31) Error while evaluating Panel SizeChangedFcn
Could anybody explain why these error occurs and how I should solve this problem (get rid of them)? Thank you!
Réponses (1)
Adam
le 6 Mar 2017
Use
dbstop if error
and take a look at 'handles'. You appear to have lost the handles structure or replaced it with something else that is not a struct to get an error like that.
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!