unexpected login at design time when project opened

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
easyblue
Posts: 64
Joined: Wed 02 Feb 2005 13:02
Location: Shanghai

unexpected login at design time when project opened

Post by easyblue » Wed 27 Apr 2005 05:34

Hello

After upgrade to build 19, at the opening an old project in C++Builder, a login dialog of MyConnection appears, asking for your Mysql username, password and hostname, while the "Connected" property of the TMyConnection is "false".
This dialog also appears if set "embedded" to true.

Please remove this unexpected login at design time.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 28 Apr 2005 08:33

We couldn't reproduce the problem.
Please send us complete small sample to demonstrate it and include script to create server objects.

easyblue
Posts: 64
Joined: Wed 02 Feb 2005 13:02
Location: Shanghai

Post by easyblue » Fri 29 Apr 2005 04:04

Hello

The problem seems to be linked with case that you have a CRDBGrid linked to a TMyTable, the table name is fixed while connection is not active.

Please try the following way:

Drop a TMyConnection, TMyTable, TDataSource and TCRDBGrid, connect to an existing database through TMyConnection, choose one table in TMyTable, show this table in the CRDBGrid.

Set the connected=false--> the grid will show nothing.

Save the project, and open the project again, then you will have this error.

I am using C++B6

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 29 Apr 2005 08:20

Thank you for information.
We reproduced your problem and fixed it. This fix will be included in the next MyDAC build. It will be available in nearest time.

Post Reply