Database Toolbox Explorer Connect Crashes with WindowStyle docked
1 view (last 30 days)
Show older comments
Ron Fredericks
on 11 Jul 2020
Answered: Ron Fredericks
on 12 Jul 2020
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
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Database Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!