Problems designing gui using GUIDE
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Image Analyst
2015-11-17
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!