Problems designing gui using GUIDE
4 views (last 30 days)
Show older comments
Hey all,
I'm trying to design a GUI using GUIDE. So far i have a title (made up of 5 static texts - different fontsizes and some bold etc) and a panel with 7 static text titles above 7 textboxes but when saving it, my .m file errors out with the following long long list:
Attempt to execute SCRIPT EPM_GUI as a function:
C:\Users\Paul\Documents\MATLAB\EPM_GUI.m
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)EPM_GUI('edit5_CreateFcn',hObject,eventdata,guidata(hObject))
Attempt to execute SCRIPT EPM_GUI as a function:
C:\Users\Paul\Documents\MATLAB\EPM_GUI.m
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)EPM_GUI('edit4_CreateFcn',hObject,eventdata,guidata(hObject))
Attempt to execute SCRIPT EPM_GUI as a function:
C:\Users\Paul\Documents\MATLAB\EPM_GUI.m
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)EPM_GUI('edit3_CreateFcn',hObject,eventdata,guidata(hObject))
Attempt to execute SCRIPT EPM_GUI as a function:
C:\Users\Paul\Documents\MATLAB\EPM_GUI.m
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)EPM_GUI('edit2_CreateFcn',hObject,eventdata,guidata(hObject))
Attempt to execute SCRIPT EPM_GUI as a function:
C:\Users\Paul\Documents\MATLAB\EPM_GUI.m
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)EPM_GUI('edit1_CreateFcn',hObject,eventdata,guidata(hObject))
java.lang.RuntimeException: Invalid or deleted object.
at com.mathworks.jmi.bean.UDDObject.get_from_Matlab(UDDObject.java:752)
at com.mathworks.jmi.bean.UDDObject.getPropertyValue(UDDObject.java:611)
at com.mathworks.toolbox.matlab.guide.HGControl.getPropertyValueForCompatibility(HGControl.java:249)
at com.mathworks.toolbox.matlab.guide.HGControl.getUIControlForUDDObject(HGControl.java:113)
at com.mathworks.toolbox.matlab.guide.HGControl.getControlForUDDObject(HGControl.java:77)
at com.mathworks.toolbox.matlab.guide.HGControl.getDisplayIconForControl(HGControl.java:136)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectNodeUtils.getObjectIcon(ObjectNodeUtils.java:106)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectView$ObjectViewWorker.runOnMatlabThread(ObjectView.java:626)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:475)
java.lang.RuntimeException: Invalid or deleted object.
at com.mathworks.jmi.bean.UDDObject.get_from_Matlab(UDDObject.java:752)
at com.mathworks.jmi.bean.UDDObject.getPropertyValue(UDDObject.java:611)
at com.mathworks.toolbox.matlab.guide.HGControl.getPropertyValueForCompatibility(HGControl.java:249)
at com.mathworks.toolbox.matlab.guide.HGControl.getUIControlForUDDObject(HGControl.java:113)
at com.mathworks.toolbox.matlab.guide.HGControl.getControlForUDDObject(HGControl.java:77)
at com.mathworks.toolbox.matlab.guide.HGControl.getDisplayIconForControl(HGControl.java:136)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectNodeUtils.getObjectIcon(ObjectNodeUtils.java:106)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectView$ObjectViewWorker.runOnMatlabThread(ObjectView.java:626)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:475)
java.lang.RuntimeException: Invalid or deleted object.
at com.mathworks.jmi.bean.UDDObject.get_from_Matlab(UDDObject.java:752)
at com.mathworks.jmi.bean.UDDObject.getPropertyValue(UDDObject.java:611)
at com.mathworks.toolbox.matlab.guide.HGControl.getPropertyValueForCompatibility(HGControl.java:249)
at com.mathworks.toolbox.matlab.guide.HGControl.getUIControlForUDDObject(HGControl.java:113)
at com.mathworks.toolbox.matlab.guide.HGControl.getControlForUDDObject(HGControl.java:77)
at com.mathworks.toolbox.matlab.guide.HGControl.getDisplayIconForControl(HGControl.java:136)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectNodeUtils.getObjectIcon(ObjectNodeUtils.java:106)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectView$ObjectViewWorker.runOnMatlabThread(ObjectView.java:626)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:475)
Any ideas what could be causing these errors?
Thanks,
Paul..
0 Comments
Answers (2)
Image Analyst
on 17 Nov 2015
You must have put a line of code in there out of place, like at the beginning. Attach your m-file, or at least post the first few lines of it. How else can we diagnose it?
0 Comments
See Also
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!