# DA Delphi recompile DAD driver

**URL:** https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853
**Category:** Data Abstract
**Tags:** delphi
**Created:** [December 3, 2019, 12:30pm UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853 "2019-12-03T12:30:53Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![claudio.piffer](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@claudio.piffer](https://talk.remobjects.com/u/claudio.piffer)
#### Post date: [December 3, 2019, 12:30pm UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/1 "2019-12-03T12:30:53Z")

</div>

Hi,

in the DASchemaModeler I need to automatically manage the fields name in PascalCase (I’m working with a db oracle) instead of having their names all capitalized

For this operation I have to modify and recompile the UniDAC dad driver. I tried to compile without modified but when I use it in DASchemaModeler raise some exception. Example when I open the list of fields of a table ecc ecc

I recompiled the DAD driver with last version of Delphi (10.3.3) and last version of UniDAC (8.1.2).

Are there any particular prerequisites for recompiling a DAD driver?

Thank you very much and best regards

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 3, 2019, 12:52pm UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/2 "2019-12-03T12:52:18Z")

</div>

Hi,

there shouldn’t be any issues with it.  
one requirement - use unicode version of Delphi.

What exactly errors were shown?

---

<div class="post-metadata">

### Author: ![claudio.piffer](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@claudio.piffer](https://talk.remobjects.com/u/claudio.piffer)
#### Post date: [December 3, 2019, 1:09pm UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/3 "2019-12-03T13:09:50Z")

</div>

Hi EvgenyK

yes I use last version of Delphi (RIO 10.3.3).

Thi is the connection string;

 ![image](https://talk.remobjects.com/uploads/default/original/2X/2/22ca05d5054543866aefdf71846a7eb0444fc76b.png)

When I open a Table

 ![image](https://talk.remobjects.com/uploads/default/original/2X/3/3d83603301c7bf9b47fe56a016cbd8542b8c11e2.png)

This is the result

 ![image](https://talk.remobjects.com/uploads/default/original/2X/4/496648df052d2e5fc67484c5ffa16b69c2c728ae.png)

With original driver this is the result:

 ![image](https://talk.remobjects.com/uploads/default/original/2X/c/c0de4d8c7dc5fdfdd081b244dbc6e9f3fe588f49.png)

I only recompiled the original DAD driver without any modification

In debug after call the procedure Oracle\_DoGetTableFields of the unit uDAOracleInterfaces raise an access violation

 ![image](https://talk.remobjects.com/uploads/default/original/2X/0/0870f6ee73488917112db06e993415d859ffc6c0.png)

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 3, 2019, 1:57pm UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/4 "2019-12-03T13:57:55Z")

</div>

Hi,

I can reproduce issue with UniDAC 8.1.2 and Delphi 10.3.3.  
Will investigate.  
something could be changed in 10.3.3

for `DAUniDACDrv.dad`, we use UniDAC v6.4.16 (21-Nov-16) and XE8 compiler.

---

<div class="post-metadata">

### Author: ![claudio.piffer](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@claudio.piffer](https://talk.remobjects.com/u/claudio.piffer)
#### Post date: [December 3, 2019, 3:27pm UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/5 "2019-12-03T15:27:03Z")

</div>

Many thanks EvgenyK.

I don’t have Delphi XE8 installed but I have XE7, Berlin and Tokyo. While waiting for your feedback, I try one of these and let you know

Best Regards

---

<div class="post-metadata">

### Author: ![claudio.piffer](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@claudio.piffer](https://talk.remobjects.com/u/claudio.piffer)
#### Post date: [December 3, 2019, 8:43pm UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/6 "2019-12-03T20:43:20Z")

</div>

Hi EvgenyK.

I tried with Delphi 10.2.3 whit last version of DA and UniDAC and work fine. So the problems are in Delphi Rio 10.3.x

Best Regards

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [December 4, 2019, 7:55am UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/7 "2019-12-04T07:55:46Z")

</div>

Thanks, logged as [bugs://83608](https://www.remobjects.com/portal/bugs/?id=83608)

---

<div class="post-metadata">

### Author: ![bjmueggeflebde](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/b/b9bd4f/32.png) [@bjmueggeflebde](https://talk.remobjects.com/u/bjmueggeflebde)
#### Post date: [January 2, 2020, 4:38am UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/8 "2020-01-02T04:38:45Z")

</div>

I see that the bug is still listed as “Needs Triage”, so I’ll share what I found when I ran into this same issue myself a while ago.

The DoGetTableFields method returns a TDAFieldCollection, which descends from TCollection, which uses TList\<TCollectionItem\> to store its items. The problem is that the implementation of TList\<T\> changed between 10.2 and 10.3. In 10.2 and earlier versions, TList\<T\> contains an “array of T” that holds its data. In 10.3 though, TList\<T\> accesses the array via a pointer contained in a TListHelper record.

The error occurs because the RemObjects.DataAbstract.Unmanaged.dll that the Schema Modeler uses to connect to Delphi-based drivers tries to access the array directly, which works fine in older versions, but fails in 10.3 because the array is not where the dll expects it to be.

On a related note, is there any chance that the source code for the dll could be made available? That would make it easier to diagnose these kinds of issues in the future.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [January 3, 2020, 8:45am UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/9 "2020-01-03T08:45:35Z")

</div>

Hi,

Thx. I’ve added your comment to #83608.

> [@bjmueggeflebde](#):
>
> On a related note, is there any chance that the source code for the dll could be made available? That would make it easier to diagnose these kinds of issues in the future.

We will review this possibility.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [January 9, 2020, 2:17pm UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/14 "2020-01-09T14:17:18Z")

</div>

Thanks, logged as [bugs://83754](https://www.remobjects.com/portal/bugs/?id=83754)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [January 23, 2020, 12:40pm UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/15 "2020-01-23T12:40:34Z")

</div>

[bugs://83608](https://www.remobjects.com/portal/bugs/?id=83608) got closed with status notfixable.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [January 23, 2020, 1:26pm UTC](https://talk.remobjects.com/t/da-delphi-recompile-dad-driver/20853/16 "2020-01-23T13:26:59Z")

</div>

[bugs://83754](https://www.remobjects.com/portal/bugs/?id=83754) got closed with status fixed.
