Database Toolbox Explorer Connect Crashes with WindowStyle docked

1 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Database Toolbox 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by