Page 1 of 1

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

Posted: Fri 16 May 2014 14:53
by paulzip
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.

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

Posted: Mon 19 May 2014 10:46
by AlexP
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.

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

Posted: Mon 19 May 2014 14:49
by paulzip
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.

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

Posted: Tue 20 May 2014 09:19
by AlexP
Glad to see that the issue was resolved. If you have any further questions, feel free to contact us.