Vista + D7 + SDAC 3.80.0.38 = Incorrect MDAC Version

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Scoundrel
Posts: 5
Joined: Thu 08 Nov 2007 12:00

Vista + D7 + SDAC 3.80.0.38 = Incorrect MDAC Version

Post by Scoundrel » Thu 08 Nov 2007 13:16

Hi Developers.

My application currently developed under Windows XP not works under Vista. The errormessage is "Incorrect MDAC version. Download latest MDAC version".

What is the problem?

SC

yeohray
Posts: 56
Joined: Mon 26 Mar 2007 01:25

Post by yeohray » Thu 08 Nov 2007 15:31

Encountered that too. I upgraded to version 4, and noticed that the check for the MDAC version is not made on Vista systems, thus not raising that error message. No idea what's the reason for that.

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

Re: Vista + D7 + SDAC 3.80.0.38 = Incorrect MDAC Version

Post by Antaeus » Fri 09 Nov 2007 08:03

Scoundrel wrote:My application currently developed under Windows XP not works under Vista. The errormessage is "Incorrect MDAC version. Download latest MDAC version".

What is the problem?
This error was fixed in SDAC 3.80.0.32, so it must not appear in SDAC 3.80.0.38. Try to check value of this variable at run-time: SdacVersion. If it equals to '3.80.0.38', run this code in your application, and report us the exact text of the message:

Code: Select all

var
  OSVersionInfo: TOSVersionInfo;
begin
  OSVersionInfo.dwOSVersionInfoSize := SizeOf(TOSVersionInfo);
  Windows.GetVersionEx(OSVersionInfo);
  ShowMessage(IntToStr(OSVersionInfo.dwMajorVersion));
end;

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

Post by Antaeus » Fri 09 Nov 2007 08:06

yeohray wrote:Encountered that too. I upgraded to version 4, and noticed that the check for the MDAC version is not made on Vista systems, thus not raising that error message. No idea what's the reason for that.
The reason of the problem is that MDAC version under Windows Vista differs from MDAC version under XP, 2000, etc. So we had to add some code to avoid this problem.

Scoundrel
Posts: 5
Joined: Thu 08 Nov 2007 12:00

Re: Vista + D7 + SDAC 3.80.0.38 = Incorrect MDAC Version

Post by Scoundrel » Fri 09 Nov 2007 12:46

Hi Antaeus,

I checked run-time sdac version. That was 3.5.0.xx. I removed manually all sdac related files, and I reinstalled 3.8.0.38. Now it works.

Thanks for help!

SC
Antaeus wrote:
Scoundrel wrote:My application currently developed under Windows XP not works under Vista. The errormessage is "Incorrect MDAC version. Download latest MDAC version".

What is the problem?
This error was fixed in SDAC 3.80.0.32, so it must not appear in SDAC 3.80.0.38. Try to check value of this variable at run-time: SdacVersion. If it equals to '3.80.0.38', run this code in your application, and report us the exact text of the message:

Code: Select all

var
  OSVersionInfo: TOSVersionInfo;
begin
  OSVersionInfo.dwOSVersionInfoSize := SizeOf(TOSVersionInfo);
  Windows.GetVersionEx(OSVersionInfo);
  ShowMessage(IntToStr(OSVersionInfo.dwMajorVersion));
end;

Post Reply