waitbar closing at random times

조회 수: 2 (최근 30일)
Travis
Travis 2015년 1월 6일
댓글: Oli Fairfax 2019년 7월 1일
I have a waitbar that opens and closes as I have 2 loops and it works inside the inner one. The problem I am having is that at times the waitbar will close on its own when I click to another window. It is inconsistent and very annoying. Has anyone else run into this problem? Any suggestions (other than don't click to another window) as to what I might be able to do to fix this?
  댓글 수: 1
Oli Fairfax
Oli Fairfax 2019년 6월 25일
I have frequently the same problem (in 2018b) and have to check first to see if it still exists before updating it, otherwise I create a new one. It seems that it's not using it's own figure handle correctly...

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2019년 6월 25일
Set a breakpoint in te code, which closes the waitbar. Then you can inspect the reasons why it does so.
My first guess is that "clicking on another figure" start a script, which contains a close all in a brute clearing header. Then waitbar is not responsible for the deleting, but the evil script.
  댓글 수: 1
Oli Fairfax
Oli Fairfax 2019년 7월 1일
Unfortunately I am unable to recreate the closing whilst running in debug mode... I shall keep digging.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by