How to get rid of BDE

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Milan Bacik
Posts: 28
Joined: Fri 28 Apr 2006 08:59
Location: Czech Republic
Contact:

How to get rid of BDE

Post by Milan Bacik » Wed 02 Jul 2008 08:38

After we succesfully migrate our Builder 2006 project from BDE to ODAC we are not able to cut of BDE. ALthough we removed all includes in headers, all references in project the executable is still loading BDE dlls. This is problem because we have to distribute BDE, which sometimes colide with other BDE aplications.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 03 Jul 2008 07:54

Try the following:

1. Open Project | Options | Packages and remove bdertl from the runtime package list.

2. Open the *.bdsproj file in a text editor, and check that this file does not contain any references to 'bde'.

Milan Bacik
Posts: 28
Joined: Fri 28 Apr 2006 08:59
Location: Czech Republic
Contact:

Post by Milan Bacik » Thu 03 Jul 2008 10:15

I have removed bdertl from runtime packages. Program is still loading BDERTL100.BPL. When i look at executable with Dependency Walker i discovered that ODACVCL100.BPL is dependent on BDERTL100.BPL.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 04 Jul 2008 06:49

You are right. OdacVcl requires BDE because OdacVcl contains the TBDESession component.
If you have ODAC with Sources you can recompile the OdacVcl package without the TBDESession component (you need to comment $DEFINE BDESESSION in Odac.inc). Otherwise I recommend to remove OdacVcl from the runtime packages list.

Milan Bacik
Posts: 28
Joined: Fri 28 Apr 2006 08:59
Location: Czech Republic
Contact:

Post by Milan Bacik » Fri 04 Jul 2008 09:08

I need OdacVcl because of Hourglass cursor. I have odac sources version 5.80 and there is no $DEFINE BDESESSION. Should I upgrade to odac 6.x ?

Milan Bacik
Posts: 28
Joined: Fri 28 Apr 2006 08:59
Location: Czech Republic
Contact:

Post by Milan Bacik » Fri 04 Jul 2008 10:08

OK I comented TBDEsession out in sources and everything is OK now. Thanks for your help. Migration to ODAC was good decision and we are happy to using it :)

Post Reply