Database Toolbox Explorer Connect Crashes with WindowStyle docked

2 views (last 30 days)
After installing Database toolbox, and configuring Data Source to an ODBC MySQL server using Database explorer app. I get a long set of error messages when I click on Connect.
Here is a short initial set of error messages that goes on for many lines:
Warning: Error occurred while executing the listener callback for event ConnectRequest defined for class
dbgui.internal.ToolStripDisplay:
Error using figure
Cannot set DockControls to 'off' while WindowStyle is 'docked'.
Error in dbgui.internal.ConnectDialog (line 33)
this.Figure = figure('DockControls','off',...
Error in dbgui.internal.dbSession/attemptConnection (line 1171)
dbgui.internal.ConnectDialog(this,dsName,driverType);
I did solve the problem by removing one line of code from my startup.m file:
addpath(genpath(userpath)) % add subdirectories to matlab userpath
% set(0, 'DefaultFigureWindowStyle', 'docked')
set(0, 'DefaultFigureColormap', jet), close all
With the line of code commented out: set(0, 'DefaultFigureWindowStyle', 'docked')
The errors were resolved.
I posted this question (with a workaround answer) here because I saw no help related to this issue. Hopefully MATLAB team could find a better error message or an automated "undocking" event so a first time user of Database toolbox can have a better initial user experience. But at least this post can now serve to help unravel this mystery for new users as well.
Product: R2020a update 3

Accepted Answer

Ron Fredericks
Ron Fredericks on 12 Jul 2020
Note: I did include a workaround answer in my question above.

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!