BDE migration wizard, project needs BDE when installed

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Fraggel
Posts: 3
Joined: Fri 23 Feb 2007 22:38
Location: Veldhoven, The Netherlands

BDE migration wizard, project needs BDE when installed

Post by Fraggel » Mon 15 Oct 2007 22:20

I have a project that uses MySQL as it's database. After deploying i get an error message stating the following 'an error occurred while attempting to initialize the Borland Databse engine (error $210A)', when i start the exe. The app does work however! So i used the bde migration wizard to get rid of this, but the report tells me that nothing was changed. Thus the error stays. I thought that since i am using TMy... classes i do not need the BDE... When i install BDE with the App i get no errors. I am guessing that the fact the DB unit is used the search for the BDE is started. 1 Is this correct? 2. Can i get rid of the BDE with MyDAC? I am using 5.2 version of it, BDS 2006.


Eric-Jan

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 16 Oct 2007 07:14

The DB unit contains base classes for working with databases, and it do not need BDE. MyDAC do not need BDE as well.
BDE classes are implemented in the DBTables unit. It is likely that the name of the unit appears in a uses clause of a unit of your program. Find all appearances of DBTables in you program and remove them.

Fraggel
Posts: 3
Joined: Fri 23 Feb 2007 22:38
Location: Veldhoven, The Netherlands

Post by Fraggel » Tue 16 Oct 2007 19:20

Hello Antaneus,

OK, it's not the DB unit.., i was close. But, the DBTables is nowhere included in my project. I did have a TDataSource in my project. Am i right that the units for DataAccess and/or datacontrols are the guilty ones? Is there a list somewhere or was it just limited to DBTables? Sorry to bother you but the 5MB extra for the BDE i do not want to have in my distribution...

EDIT:ohoh, can DBGrids be a problem? Or a dll that i use that has some functions using DBTables?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 17 Oct 2007 07:00

BDE is only used by components from the BDE palette tab. So, DB-aware controls like TDBGrid cannot be the reason.

> Or a dll that i use that has some functions using DBTables?
Yes, this may be the reason.

Fraggel
Posts: 3
Joined: Fri 23 Feb 2007 22:38
Location: Veldhoven, The Netherlands

Post by Fraggel » Wed 17 Oct 2007 16:53

Hello Antaeus,

Sorry for the mispelling in my previuos post.
Thanks for your advice. The dll i use has indeed references to DBTables. With the time i have i can not recreate the dll so i will deploy the BDE with it for now. I will surely check whether or not that's my problem because in the end it has to go without the BDE.

Again thanx!

Post Reply