Trouble with myembconection

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
nelsonfernando
Posts: 1
Joined: Thu 06 Jul 2006 22:24

Trouble with myembconection

Post by nelsonfernando » Thu 06 Jul 2006 22:44

Hi I´m trying to setup a embeded conection using a trial version of dac , the conection works just fine and mysqltable make the access to the tables without trouble , but whem I compile the project at Builder c++ 6 it gives me the folowing messages .
" Project XXX.exe raised exception class EOSError with message 'System error. Code 183 not possible to create a file that already exists "
whem a step over this point
the following error ocurs
" Cannot run second embedded server instance for single data folder"

The strange part is that there´s only ONE instance of the server in the project

I configured my project folder lik this :
-put the libmysqld.dll in it;
-copyed the mysql data folder in there;
-copyed the mysql share folder in there ;

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 07 Jul 2006 07:42

If you set MyEmbConnection.Connected to True in design time, Delphi loads libmysqld.dll into the memory. This library stays loaded even if you close the project which uses it. When Delphi is being closed all its resources are being freed including this libmysqld.dll. Try to restart IDE, open project with embedded server, run this project. MyEmbConnection.Connected property mustn't be set to True in design time at all.

Post Reply