I have a GUI application that includes a Quit button on the GUI. This all works fine with a clean exit when run in the Matlab environment (and also compiled version). But when I use the Kill button in the top right corner the application does not exit cleanly both when run in the Matlab envirnoment and compiled version.
What am I missing?

 Respuesta aceptada

Image Analyst
Image Analyst el 5 de Dic. de 2014
Editada: Image Analyst el 5 de Dic. de 2014

0 votos

Are you doing some extra cleaup in your Quit button callback, like stopping timers or whatever? If you click the upper right X it does not do any of that. You can put the cleanup code in the figMainWindow_CloseRequestFcn() function and then it will run that when you click the X.

Más respuestas (0)

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Preguntada:

el 5 de Dic. de 2014

Editada:

el 5 de Dic. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by