Hi folx,
I'm writing an application using app designer (moved to designer from guide I used in previous projects).
My problem is, that during development I have of course many bugs in the beginning, but some of them causes the app to starve. It is not possible to use a standard close(figure) but it is also not posible to close the window. CTRL-C or CTRL-Break also do nothing. The only solution is to restart matlab (after 20+ seconds of delay).
Thanks for any hints

 Réponse acceptée

Mario Malic
Mario Malic le 17 Sep 2020
Modifié(e) : Mario Malic le 29 Oct 2020
Updated
Note, this closes all figures
close(findall(0, 'type', 'figure'));

8 commentaires

Waldemar
Waldemar le 17 Sep 2020
Thanks for the fast response. I'll test it later, everything is working fine at the moment :-). I'm sure it will starve again.
Waldemar
Waldemar le 29 Oct 2020
I was sick for a while, sorry for late response. It did not helped, I'm afraid. I do not know how this happen, but ist is a total lock from time to time
Mario Malic
Mario Malic le 29 Oct 2020
Modifié(e) : Mario Malic le 29 Oct 2020
Please see the updated answer.
When you press Ctrl+C multiple times, do you see multiple double arrows showing up in the command window immediately when you click?
>>
>>
>>
Waldemar
Waldemar le 29 Oct 2020
Hi Mario,
no, it does not work. Today it happened once, that the computer reacted after 2-3 minutes killing app designer with the app I tried to run. I had 4 crashes in total today.
Mario Malic
Mario Malic le 29 Oct 2020
Modifié(e) : Mario Malic le 29 Oct 2020
What's the answer on my comment above? Next time check if MATLAB is not responding in task manager, how much RAM is free?
Mario Malic
Mario Malic le 29 Oct 2020
Replying here, still missing an answer on my Ctrl+C comment, test it out tomorrow and report.
Waldemar
Waldemar le 30 Oct 2020
Sorry, I missed this. There is no reaction on Ctrl+C or enter. There is a new line on enter, but no new prompt. The only way to kill the app is to use task manager. It takes 1-2 minutes to kill the app including Matlab.
Mario Malic
Mario Malic le 30 Oct 2020
I don't understand well what are you saying here.
There is no reaction on Ctrl+C or enter. There is a new line on enter, but no new prompt.
Once again:
  • if you press ctrl+c or enter, you should see ">>" showing up with each click if MATLAB is not busy (or not responding - frozen)
  • If you press enter and only new lines are apearing, without ">>", then MATLAB is busy doing something, but not frozen. In this case ctrl+c would probably return an error
  • When your app freezes, check task manager if your MATLAB is not responding
Also, there are some unsupported functions between GUIDE and App Designer, so make sure you're using what is supported by the latter. You can also test your app on the other machine, maybe there's something wrong with yours.

Connectez-vous pour commenter.

Plus de réponses (1)

Waldemar
Waldemar le 29 Oct 2020

0 votes

Hi Mario,
I did not checked the RAM to be honest. I'll check it tomorrow. My data is about 50 MB in total and I do not have many programmes open but Matlab.
Thanks for your help

Catégories

En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange

Produits

Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by