Embedded with strange behaviour

Embedded with strange behaviour

Postby 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
 

could some friendly embedded users test this one ?

Postby 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
Etienne
 
Posts: 2
Joined: Fri 03 Dec 2004 07:37

Re: Embedded with strange behaviour

Postby 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]);
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56


Return to MySQL Data Access Components