MyDAC registry entries: Explanation? And bug implications.

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
gwideman
Posts: 4
Joined: Fri 18 Jan 2008 11:02

MyDAC registry entries: Explanation? And bug implications.

Post by gwideman » Sat 22 Nov 2008 05:23

Hi folks:

Could someone explain the purpose and impact of the registry entries at:

HKEY_CURRENT_USER\Software\CoreLab\MyDac\Connect
?
The reason I ask is that it's these entries that appear to be causing the D2007 IDE to prompt to connect to particular databases when a form or DataModule is opened. Unfortunately, these prompt to connect to the wrong database, because I've long ago changed the TMyConnection to point to a different DB.

That would be relatively harmless, except that logging in (or maybe not logging in) leads to changes in the code on the DataModule, which in turn is provoking the "DataSouce reference getting lost" IDE bug that's discussed here:
https://forums.codegear.com/thread.jspa ... 0&tstart=0

Ie: these reg entries are not causing the bug, but prompting it to happen much more often than necessary.

(I've since deleted all reg entries that mention the wrong DB, and that seems to help, but not sure why they are there in the first place.)

Any insights appreciated.

-- Graham

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 25 Nov 2008 12:28

Registry entries "Connect" contain servers list, that was set in the Server property of TMyConnection. These values are used for creating servers list on using Connection Dialog. However, its values are not used directly on establishing connection, and you should set the TMyConnection.Server property directly.

Post Reply