App starts without all components populated or being ready to use

1 Ansicht (letzte 30 Tage)
Bryan Welch
Bryan Welch am 12 Mai 2021
Beantwortet: Eric Delgado am 29 Sep. 2022
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 Kommentare
Adam Danz
Adam Danz am 13 Mai 2021
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 am 6 Sep. 2022
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?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Eric Delgado
Eric Delgado am 29 Sep. 2022
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).

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by