From: The Kengineer on 20 Apr 2010 15:59 I am having a problem with Matlab GUI on R2007a that I cannot find a solution for online. Hopefully somebody here can help. The program has been running with no problems until recently. For no apparent reason, I can no longer open the .fig file to edit through GUIDE. When I try to open the file in GUIDE, I get an error as follows: [Title: "GUIDE"; Icon: error] Unhandled internal error in guidefunc: Error using ==> <a href="error:C:\Program Files\MATLAB\[...]\hgload.m, 156,1">hgload at 156</a> Recursion occurs when loading Z:\MatLab\[filename.fig] Error in ==> hgload at 156 Error in ==> guidefunc>newGuideFig at 1919 Error in ==> guidefunc>readSavedFigure at 2271 Error in ==> guidefunc at 96 [end of error message] When I try the .m file, it will open and I can edit the code, but when I try running it I get a similar error: ??? Error using ==> hgload at 156 Recursion occurs when loading Z:\MatLab\[filename.fig] Error in ==> openfig at 78 [fig, savedvisible] = hgload(filename, struct('Visible','off')); Error in ==> gui_mainfcn>local_openfig at 271 gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible); Error in ==> [filename] at 59 gui_mainfcn(gui_State, varargin{:}); [end of error message] If I try to run the figure through win explorer, I get the following error message: [Title: "Error Dialog"; Icon: error] Error using ==> open at 162 Values must be finite and non-NaN. [end of error message] The only change I made between when the program was working normally and when these errors began was that I changed the "Resize behavior" in Tools>GUI Options of the figure from "Non-resizable" to "Proportional". I don't know if this is what caused the problem (its a fairly large GUI interface and m-file). I cannot change this option back to "Non-resizable" to see if that fixes the problem because I cannot open the .fig file in GUIDE. All other GUI programs that I wrote run normally with no issues. Anybody know what the issue is, or any ideas to help? Thanks a lot. -Ken
|
Pages: 1 Prev: Reading mat file in C++ (VS) Next: Compiled on 32 bit won't run on 64 bit |