Embedded with strange behaviour

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Etienne

Embedded with strange behaviour

Post by Etienne » Thu 02 Dec 2004 13:28

hi there,

Our apps use embedded server.

With the latest version of libmysqld.dll + MyDAC (latest release), we are experiencing a silly behaviour.

Just compile the embedded demo
If you put it in a directory (with the dll and the share folder) for example c:\a everything works
If you put it in a c:\t directory (with the dll and the share folder) ... it will fail.

Thanks for helping,

Etienne

Etienne
Posts: 2
Joined: Fri 03 Dec 2004 07:37

could some friendly embedded users test this one ?

Post by Etienne » Fri 03 Dec 2004 07:43

hi again ...

Did someone test this previous post ? I tested it on 4 diffrent computers and I'd like to have a confirmation ...

I'd like to know if it a pb from the dll or from MyDAC ...

Thanks a lot,

Etienne

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

Re: Embedded with strange behaviour

Post by Ikar » Fri 03 Dec 2004 10:12

We could reproduce the problem. The reason of the problem is in incorrect processing in MySQL server paths
from my.ini if they were written with '\. To avoid the problem you should write path with '/'.
Thus, a row from Mydac\Demos\Embedded\Main.pas

Code: Select all

FilePath := ExtractFilePath(ParamStr(0));
must be changed to the next

Code: Select all

FilePath := StringReplace(ExtractFilePath(ParamStr(0)), '\, '/',[rfReplaceAll]);

Post Reply