Page 1 of 1

MyDAC registry entries: Explanation? And bug implications.

Posted: Sat 22 Nov 2008 05:23
by gwideman
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

Posted: Tue 25 Nov 2008 12:28
by Dimon
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.