필터 지우기
필터 지우기

App starts without all components populated or being ready to use

조회 수: 2 (최근 30일)
Bryan Welch
Bryan Welch 2021년 5월 12일
답변: Eric Delgado 2022년 9월 29일
I've developed an extensive App in R2019b (very large number of components), and when myself or others use it in R2020a, R2020b, or R2021a, it launches to the user wih the following concerns:
  • Not all of the components have been fully created
  • Actions assigned during the startupFcn process have not been fully performed
  • Visible components (such as an initial pull-down menu for selecting an operating mode) are not usable.
In these newer versions, a user may need to wait an additional 15-20 seconds from when the App window appears Visible to them before it truly is usable.
I've tried some other suggestions related to this issue, but without success.
  • Creating the App to appear off-screen and then to move the App on-screen at the end of the startupFcn
  • Pause statements to the startupFcn process
  • Adding a uiwaitbardialog at the start of the startupFcn process and closing it at the end of that process
  • Exporting the App file to a .m file (from 2019b version of the App)
Thoughts/ideas? Thank you in advance for any suggestions.
  댓글 수: 4
Adam Danz
Adam Danz 2021년 5월 13일
The difference in startup speed within the same matlab session could be a result of the JIT compiler.
You might want to contact tech support although they may ask for the app, too.
Philipp Petr
Philipp Petr 2022년 9월 6일
I am struggling with the same problem. During the startup as MLAPP, actions are possible in the UI that cause the program to crash. Can this be fixed by a splashscreen or for example by hiding the window until the end of the StartupFcn?

댓글을 달려면 로그인하십시오.

답변 (1개)

Eric Delgado
Eric Delgado 2022년 9월 29일
I had this issue... so...
(1) Open your app (all .mlap files) in the AppDesigner of this new release of Matlab, save it and then execute it. It's essential!
(2) Update your OS (new releases of Matlab crashes with old versions of Windows 10, for example).

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by