Page 1 of 1

Embedded with strange behaviour

Posted: Thu 02 Dec 2004 13:28
by Etienne
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

could some friendly embedded users test this one ?

Posted: Fri 03 Dec 2004 07:43
by Etienne
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

Re: Embedded with strange behaviour

Posted: Fri 03 Dec 2004 10:12
by Ikar
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]);