Why am I unable to close a question dialog box created by the QUESTDLG function when a UIGETFILE dialog box is also open in MATLAB 7.0 (R14)?

6 次查看(过去 30 天)
When I create a question dialog box in MATLAB 7.0 (R14) using the QUESTDLG function, the dialog box appears but the buttons are not functional and I cannot close the box. Therefore, I cannot regain control of MATLAB without restarting MATLAB.
To reproduce, create a timer function which produces a Java based modal question dialog box and set it to initiate in five or ten seconds.
start(timer('StartDelay',5,'TimerFcn','questdlg(''timer question'');',...
'StopFcn','delete(timerfind(''Name'',''testtimer''))',...
'Name','testtimer'));
Before the timer function initiates, open a uigetfile dialog with the following command:
uigetfile('','modal blocker');
Now wait for the timer function questdlg prompt to appear.

采纳的回答

MathWorks Support Team
This bug has been fixed in Release 2006b (R2006b). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0 (R14) when using question dialog boxes. This issue has been resolved in MATLAB 7.0.1 (R14SP1).
To work around this issue in MATLAB 7.0 (R14), disable the Java feature of figures by using the following command:
feature('javafigures', 0);
Note that as a result of disabling the Java figures feature, you will no longer be able to dock/undock figure windows in the desktop, group together undocked figure windows, and use plot tools.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by