embedded app running within delphi

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rui
Posts: 3
Joined: Sun 23 Jan 2005 10:14

embedded app running within delphi

Post by rui » Thu 01 Jun 2006 18:42

"Cannot run second Embedded Server instance for a single data folder"
I can´t run an app in delphi with tMyEmbConnection. Connected is False in design time. There is not other apps running ....

i have seen this question in the forum but not its solution. :(

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

Post by Antaeus » Mon 05 Jun 2006 08:08

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