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)?

1 view (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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.

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!