The MathWorks - Bug Reports - 452282 - System error resulting in a corrupted FIG-file when building a GUI in GUIDE

来源:百度文库 编辑:神马文学网 时间:2024/04/27 17:20:04

Summary

 

System error resulting in a corrupted FIG-file when building a GUI in GUIDE

Description

 

When building GUIs in GUIDE, saving the GUI or performingedits in GUIDE can generate an exception that displays in a MATLABSystem Error dialog, and result in a corrupted GUI FIG-file file.

Thecorrupted GUI FIG-file cannot be restored, causing the GUI to becomeunusable; if you attempt to open the GUI, the following error mightdisplay:

 Error using ==> hgload at 53 invalid Figure file format

Workaround

 

To work around this issue, replace the version of the guidemfile.m function in your current R2008a installation with the updated version attached, as follows:

  1. Exit MATLAB.
  2. Make a backup copy of the following file. matlabroot\toolbox\matlab\guide\guidemfile.m
    matlabroot represents the name of your MATLAB installation directory, as returned by the matlabroot function.
    For example, rename the existing file, adding "old" to the file extension, guidemfile.m.OLD.
  3. Download the attached file, guidemfile.m, storing it the directory specified in the previous step.
  4. Restart MATLAB.
  5. Run the rehash toolbox command at the MATLAB prompt.

The workaround prevents the corruption of new GUIs. It does not repair old GUIs that are already corrupted.

Fix

 

The fix prevents the corruption of new GUIs. It does not repair old GUIs that are already corrupted.

Attachments

  • guidemfile.m

Exists in Release (Version)


Exists in R2008a(7.6)

This bug affects my work.