GUI initialization code calls itself: Function figure1_DeleteFcn executed during GUI startup - WHY?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I observed some behaviour in my GUI code today that I don't understand. When I start my GUI, Matlab's standard initialisation code is executed. But when the last command
gui_mainfcn(gui_State, varargin{:});
is reached, the GUI freezes for about one second (I think stuff is happening in the background), and then the initialization code is called again. When this second (nested) call hits
gui_mainfcn(gui_State, varargin{:});
again, the "figure1_DeleteFcn" is called, followed by the "_OpeningFcn". It seems the GUI opens, then the nested call closes the GUI (that's when the DeleteFcn is called) and reopens it. I haven't seen this behaviour and don't know why this is happening.
The initialisation code is unedited.
Thank you all for your help,
Arne
댓글 수: 0
답변 (1개)
Walter Roberson
2013년 1월 3일
Is there any "clear all" in the code? If there is, get rid of it.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!