Page 1 of 1

Error "Cannot run second Embedded Server instance for a single data folder"

Posted: Fri 14 Apr 2006 09:51
by weitech
I am trying to connect to my embedded server, everytime I add a DB Control Component and run I get this message "Cannot run second Embedded Server instance for a single data folder".

But if I save the project and close out of borland c++ builder 6, and delete my project .tds file and run C++ Builder again and I will not get that error message again, until I add another components either a DB Control or MyDACs.

Why is this happening?

I am using libmysqld.dll from MySQL server 4.1.

All my setup and settings are correct.

Posted: Fri 14 Apr 2006 14:03
by Antaeus
This error message means that you try to establish several connections to single database. It can happen in following situations:
- when you try to connect to one database using two instances of TMyEmbConnection in the same application or in the different applications
- when you have connected instance of TMyEmbConnection at design time and attempt to connect to the database at runtime from the same application

Posted: Fri 14 Apr 2006 17:24
by weitech
Antaeus wrote:This error message means that you try to establish several connections to single database. It can happen in following situations:
- when you try to connect to one database using two instances of TMyEmbConnection in the same application or in the different applications
- when you have connected instance of TMyEmbConnection at design time and attempt to connect to the database at runtime from the same application
I am using only one instance of TMyEmbConnection to connect to one database only.

In Design time the connection is set to FALSE, and run time is set to TRUE.

I can't seem to work out what else could cause this...

Please help.

Posted: Mon 17 Apr 2006 13:29
by Antaeus
We couldn't reproduce the problem.
Please send us (mydac*crlab*com) a complete small sample to demonstrate it.

Also supply us following information
- Steps to reproduce the problem just after C++Builder was started
- Exact version of C++ Builder
- Exact version of MyDAC. You can see it in About sheet of TMyConnection Editor
- Exact version of MySQL embedded server. You can see it in Info sheet of TMyConnection Editor