Unit DBAccess was compiled with a different version of DASQLGenerator.TDAParamsInfo

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
paulzip
Posts: 37
Joined: Mon 02 Oct 2006 13:13

Unit DBAccess was compiled with a different version of DASQLGenerator.TDAParamsInfo

Post by paulzip » Fri 16 May 2014 14:53

A colleague has just set up a brand new Windows 7 machine and has installed Delphi 7 and patches and installed ODAC v9.3.8 for Delphi 7.

He cannot compile anything in the IDE without getting
[Fatal Error] Unit1.pas(7): Unit DBAccess was compiled with a different version of DASQLGenerator.TDAParamsInfo

An example is just putting a session component on a form :

Code: Select all

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DB, DBAccess, Ora;

type
  TForm1 = class(TForm)
    OraSession1: TOraSession;
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

end.
He has no DBAccess.* or DASQLGenerator.* files anywhere on the machine other than those newly installed by ODAC.

DASQLGenerator.dcu included in C:\Program Files (x86)\Devart\ODAC for Delphi 7\Lib is 24k, yet in previous versions it was 1k.

Can you please fix your installation so we can compile at design time on Delphi 7.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Unit DBAccess was compiled with a different version of DASQLGenerator.TDAParamsInfo

Post by AlexP » Mon 19 May 2014 10:46

Hello,

Most probably, you haven't completely deleted old ODAC version. Please delete ODAC, make sure that there are no ODAC *.dcu, *.bpl files remained in the folder, where ODAC was installed, and in the bin folder of Delphi, as well old *.dcu files of your project. Install ODAC and make sure that the Library Path points to correct ODAC directories.

paulzip
Posts: 37
Joined: Mon 02 Oct 2006 13:13

Re: Unit DBAccess was compiled with a different version of DASQLGenerator.TDAParamsInfo

Post by paulzip » Mon 19 May 2014 14:49

Please ignore, you are correct. Someone had checked in a stub version of DASQLGenerator.pas into our projects so that our project can be compiled on different versions of ODAC. My apologies.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Unit DBAccess was compiled with a different version of DASQLGenerator.TDAParamsInfo

Post by AlexP » Tue 20 May 2014 09:19

Glad to see that the issue was resolved. If you have any further questions, feel free to contact us.

Post Reply