Internal error for transfering Appdesigner Project to Matlab 2022a
조회 수: 2 (최근 30일)
이전 댓글 표시
After having successfully transfered my App Designer Project (.mlapp-file) from one matlab release to another (starting in 2018b), I just tried to transfer the project to the current 2022a release.
While running the App from the Matlab GUI was fine, opening the Project in the AppDesigner itself led to an error: 'One or more components in your file have experienced an internal error. Opening this file will remove these components and cause loss of functionality or errors.'
The AppDesigner then suggested to compare a revised Project Version with the current one ('View Code Differences'). In the revised Version all Axis (~50) are deleted.
I would like to enjoy the described performance increase reported for the newest release of the App Designer. So has anyone ever experienced this problem and found a reason for or a solution to it?
댓글 수: 0
답변 (1개)
Yukta Maurya
2022년 6월 2일
One of the possible reasons, this error can occur is when there is a component in the app that has a "CreateFcn" that calls "gca" or "gcf". These functions create an axes or figure, respectively, if one does not already exist, which is why there is a posibility that a blank figure can appear when running the app.
For this reason, it is recommend avoiding calls to "gca" or "gcf" in the "CreateFcn".
For axes and figures created and saved in App Designer, the "CreateFcn" is also saved, so even if the default "CreateFcn" is changed, the error will still persist.
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!