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 Exchange에서 App Building에 대해 자세히 알아보기

질문:

2014년 12월 5일

편집:

2014년 12월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by