Error DELPHI 2010 and MyDac

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Josep Radresa
Posts: 4
Joined: Fri 12 Nov 2010 12:35

Error DELPHI 2010 and MyDac

Post by Josep Radresa » Sat 04 Dec 2010 11:48

Gentlemen:
SDAC I'm using for quite some time.
MyDac I installed for testing and trying to compile a
2010 DELPHI program gives me the following error:
[DCC Fatal Error] dDocu.pas(6): F2051 Unit MySqlApi was compiled with a different version of CLRClasses.UnicodeToUtf8
Can you help?
Greetings

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 06 Dec 2010 09:31

Product compatibility is provided for the current build only. To make MyDAC and SDAC work simultaneously on the same IDE, you should use the latest versions of them. The latest compatible versions are the following: MyDAC 6.00.0.2, SDAC 5.00.0.2.

Josep Radresa
Posts: 4
Joined: Fri 12 Nov 2010 12:35

Post by Josep Radresa » Mon 06 Dec 2010 11:23

In order to perform the tests I downloaded trial versions MyDac SDAC 5.00.0.2 and 6.00.0.0 and it is with these versions gives me the error

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 06 Dec 2010 11:29

To solve the problem use the MyDAC version 6.00.0.2.

Josep Radresa
Posts: 4
Joined: Fri 12 Nov 2010 12:35

Post by Josep Radresa » Mon 06 Dec 2010 15:50

I just bought the package through ComponentSource MyDAC 6.00.0.2 and I also uninstalled SDAC to avoid problems, but to compile a small test program now gives me this error:
[DCC Fatal Error] dDocu.pas(6): F2051 Unit MyClasses was compiled with a different version of CRParser.lxSET

Josep Radresa
Posts: 4
Joined: Fri 12 Nov 2010 12:35

Post by Josep Radresa » Mon 06 Dec 2010 16:05

He allowed determining that the error occurs in a Delphi 2010 program that has a single component TMyConnection.
Other programs access the database without problems, since I have installed dbForge Fusion for MySQL shareware and have acquired dbForge

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 07 Dec 2010 13:54

It seems that there are some old DAC units on your computer. To solve the problem perform the following steps:
- uninstall MyDAC and SDAC;
- find all DAC units, like CRParser.dcu, CLRClasses.dcu, MemData.dcu, MemDS.dcu, DBAccess.dcu, MyClasses.dcu files on your PC and delete them;
- find all *dac*.bpl files on your PC and delete them.
- install MyDAC.

Post Reply