分享

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

 rushui 2010-01-02

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 performing edits in GUIDE can generate an exception that displays in a MATLAB System Error dialog, and result in a corrupted GUI FIG-file file.

The corrupted GUI FIG-file cannot be restored, causing the GUI to become unusable; if you attempt to open the GUI, the following error might display:

 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

Exists in Release (Version)


Exists in R2008a(7.6)

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多