EMyError not declared

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
bluscape
Posts: 6
Joined: Tue 05 Apr 2011 12:34

EMyError not declared

Post by bluscape » Wed 04 Feb 2015 21:59

I'm trying to catch EMyError but get an error:

E2003 Undeclared identifier: 'EMyError'

When I try and add MyClasses to the uses clause I get an error:

F1026 File not found: 'MyClasses.dcu'

Which unit should I include to define EMyError?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: EMyError not declared

Post by ViktorV » Thu 05 Feb 2015 09:48

To fix the "File not found" error, write the paths to the directories "%MyDAC%\Lib" and "%MyDAC%\Bin" in the "Library path" via the Tools->Environment Options->Delphi Options->Library menu. %MyDAC% is the MyDAC installation path on your computer.

bluscape
Posts: 6
Joined: Tue 05 Apr 2011 12:34

Re: EMyError not declared

Post by bluscape » Fri 06 Feb 2015 08:34

I'm not using MyDAC, I'm using Delphi dbExpress with the Devart MySQL driver.
So I have:

%MySQL\Lib\Delphi15
%MySQL\Bin\Delphi15

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: EMyError not declared

Post by ViktorV » Fri 06 Feb 2015 10:17

EMyError is the internal driver exception. It is raised and then catched inside the driver. Therefore you can't catch such errors.

Post Reply