Set TypedAddress off in Dac.inc

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
davidmarcus
Posts: 50
Joined: Tue 25 Jan 2005 11:22
Location: Somerville, MA
Contact:

Set TypedAddress off in Dac.inc

Post by davidmarcus » Fri 25 Dec 2015 20:22

I find it simpler to add the source folder to the unit search path for third-party libraries that I use. I would appreciate it if you would please add the following line to Source\Dac.inc:

Code: Select all

{$TypedAddress off}
I have TypedAddress on, so I need to do this to compile MyDAC source. I'm using

MyDAC Professional with source code 8.6.20
Delphi 10 Seattle

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

Re: Set TypedAddress off in Dac.inc

Post by ViktorV » Mon 28 Dec 2015 11:47

Existing compilation directives are standard for our components, which are used by many users - so we can't change them. You can override them for your needs.

davidmarcus
Posts: 50
Joined: Tue 25 Jan 2005 11:22
Location: Somerville, MA
Contact:

Re: Set TypedAddress off in Dac.inc

Post by davidmarcus » Mon 28 Dec 2015 12:52

Victor,

I'm sorry, but I don't understand what you wrote. Your components won't compile if TypedAddress is on. You should set the directives you need in your files or write your code to work with any setting.

David

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

Re: Set TypedAddress off in Dac.inc

Post by ViktorV » Mon 28 Dec 2015 14:46

We will consider the possibility to add this directive in the next build of MyDAC. For now, you can add it in Dac.inc manually.

davidmarcus
Posts: 50
Joined: Tue 25 Jan 2005 11:22
Location: Somerville, MA
Contact:

Re: Set TypedAddress off in Dac.inc

Post by davidmarcus » Mon 28 Dec 2015 14:51

Thank you. I did add it manually, but I don't like to change MyDAC code.

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

Re: Set TypedAddress off in Dac.inc

Post by ViktorV » Mon 28 Dec 2015 15:33

We will let you know as soon as the next MyDAC build is released.

Post Reply