Devart Data Access Components for MySQL installed Delphi 2007 instal error

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
METEHAN
Posts: 3
Joined: Thu 10 Jan 2013 16:00

Devart Data Access Components for MySQL installed Delphi 2007 instal error

Post by METEHAN » Thu 10 Jan 2013 16:09

Devart Data Access Components for MySQL installed Delphi 2007 on the application, but when we ran exeman gives the following error.
Error code: F2051 Unit MySqlApi was compiled with a different version of MemUtils.CopyBuffer
what is the reason.

AndreyZ

Re: Devart Data Access Components for MySQL installed Delphi 2007 instal error

Post by AndreyZ » Thu 10 Jan 2013 16:19

Such problem shows that there are still files from the old MyDAC version on your computer. Please try the following:
- remove MyDAC;
- remove all *dac*.bpl and *crcontrols*.bpl files from your computer;
- remove *.dcu files from your project;
- reinstall MyDAC.

METEHAN
Posts: 3
Joined: Thu 10 Jan 2013 16:00

Re: Devart Data Access Components for MySQL installed Delphi 2007 instal error

Post by METEHAN » Thu 10 Jan 2013 19:33

I did what you said but still the same problem

AndreyZ

Re: Devart Data Access Components for MySQL installed Delphi 2007 instal error

Post by AndreyZ » Fri 11 Jan 2013 08:55

Try the following:
- remove MyDAC;
- reinstall MyDAC with the /force parameter like this: mydac76d11pro.exe /force
- rebuild your application.

METEHAN
Posts: 3
Joined: Thu 10 Jan 2013 16:00

Re: Devart Data Access Components for MySQL installed Delphi 2007 instal error

Post by METEHAN » Sun 13 Jan 2013 16:34

errors in the installation is okay, but MyClasses.pas.
Error code:
[DCC Error] MyClasses.pas (204): E2137 Method 'GetCommandClass' not found in base class

line information:
function GetCommandClass: TCRCommandClass; override;

AndreyZ

Re: Devart Data Access Components for MySQL installed Delphi 2007 instal error

Post by AndreyZ » Mon 14 Jan 2013 12:26

It seems that there are source code files from the old MyDAC version left on your computer. For example, the "Method 'GetCommandClass' not found in base class" error means that you have an old CRAccess.pas file but a new MyClasses.pas file. If you are using MyDAC version with Source Code, you should replace all source files from the old MyDAC version with the ones from the new MyDAC version. Please try the following:
- remove MyDAC;
- remove all *dac*.bpl and *crcontrols*.bpl files from your computer;
- remove *.dcu files from your project;
- remove all *.pas file from the old MyDAC version from your computer;
- reinstall MyDAC.

Post Reply