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?

 採用された回答

Image Analyst
Image Analyst 2014 年 12 月 5 日
編集済み: Image Analyst 2014 年 12 月 5 日

0 投票

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.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by