Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: big bug with GUIDE
Date: Tue, 27 Jan 2009 10:43:01 +0000 (UTC)
Organization: Univ of Hull
Lines: 38
Message-ID: <glmofl$hhs$1@fred.mathworks.com>
References: <gl36da$6ih$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1233052981 17980 172.30.248.38 (27 Jan 2009 10:43:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 27 Jan 2009 10:43:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 262831
Xref: news.mathworks.com comp.soft-sys.matlab:514193


Hi.

Mike, have you found any way of recovering the fig file? I had a rather detailed GUI and would prefer not to have to build it all over again! 
Does anyone know if we can manually edit anything in the file to fix it?

Thanks,
cspsp.

"mike" <mike.sumszyk@gmail.com> wrote in message <gl36da$6ih$1@fred.mathworks.com>...
> Hi, 
> 
> I work with matlab R2008a, and I have encountered serious problem when I have tried to create a GUI using GUIDE.
> 
> Today, it is the third time that I got the following error:
> 
> ?? Error using ==> hgload at 53
> invalid Figure file format
> 
> Error in ==> openfig at 72
>     [fig, savedvisible] = hgload(filename, struct('Visible','off'));
> 
> Error in ==> gui_mainfcn>local_openfig at 286
>     gui_hFigure = openfig(name, singleton, visible);
> 
> Error in ==> gui_mainfcn at 159
>         gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible);
> 
> Error in ==> Mike_Viewer3D_2 at 42
>     gui_mainfcn(gui_State, varargin{:});
> 
> Each time, this error occur after matlab has crashed. Each time the ".fig"  file could not be opened again and I had to start writing again the GUI from the beginning.
> I am really frustrated and I do not know what to do.
> 
> I really need help,
> Is there a way to recover, or at least open the corrupted ".fig" file in order to try to correct it?
> 
> Thank you in advance 
>  Mike