Matlab APPS, opened GUI figure and Matlab won't close
37 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to use the Matlab APPS ability. I have an application which runs fine. When it is finished, I hit the MS-x in the corner to close it and it gives me this error:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Error using @(hObject,eventdata)machineControlGui('controlPanel_CloseRequestFcn',hObject,eventdata,guidata(hObject)) Not enough input arguments.
Error in appinstall.internal.stopapp (line 7) feval(obj.ExistCloseFcn);
Error while evaluating figure CloseRequestFcn
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
The application runs fine on it's own and will close without hassle if not run under the APPS tab, but running it as an "APPS" causes the error and it won't close and I can't close Matlab either unless I kill the process using task manager.
I am using the application to control instruments and take data. It is quite a few long functions which are in separate files. I have downloaded another APPS and installed it without this problem. All that APPS functionality is contained in one m-file as opposed to mine, which is in several files, text files and excel files. I just can't close it....
0 件のコメント
採用された回答
Sean de Wolski
2013 年 3 月 26 日
編集済み: Sean de Wolski
2013 年 3 月 26 日
In R2012b this was a bug with GUIDE GUIs containing custom close request functions.
You can either upgrade to 13a, or remove the CloseRequestFcn and put that code in the DeleteFcn.
4 件のコメント
Sean de Wolski
2013 年 3 月 27 日
I have no idea, I haven't seen the code. Is it possible that this piece of code was never run until now?
If you do:
dbstop if error
Run it and stop on the faulty line, what is the line of code?
その他の回答 (3 件)
AMAR P
2018 年 9 月 25 日
For 2015a and above Users:
set(0,'ShowHiddenHandles','on')
delete(get(0,'Children'))
Mike
2013 年 4 月 1 日
2 件のコメント
Sean de Wolski
2013 年 4 月 2 日
Mike, this is really the subject for a new question. Posting to an answered question reduces visibility.
参考
カテゴリ
Help Center および File Exchange で Instrument Connection and Communication についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!