Access Violation on connect

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
Patrick
Posts: 1
Joined: Fri 10 Feb 2006 10:18

Access Violation on connect

Post by Patrick » Fri 10 Feb 2006 10:33

Hello. I have the following problem using dbexpsda.dll (file version 2.50.7.0) in Delphi 7, MDAC 2.8 SP1 on WinXP SP2. When I set the connected property of a TSQLConnection component to true at design time the connection works OK. When I do it at run time I get an AV. I can use dbexpmss.dll without error.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 10 Feb 2006 15:52

Most possible you have two dbexpsda.dll files - first (right) in Windows/System folder and second in your project folder. Try to search for all such files on your HDD.

Guest

Post by Guest » Tue 07 Mar 2006 09:53

I have a very similar problem.

I create the TSQLConnection dynamically and call the Open method.
Running the compiled program is fine, but I get an AV (attempt write to address 0) when I run under the Delphi7 debug mode.

The error occurs during the Kernel function LoadLibrary, I only have one version of dbexpsda.dll

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 10 Mar 2006 12:23

Please supply us following information.
- Version of Delphi
- Version of DbxSda. You can find it in history.html or in DLL version info

Do you use DbxSda Std or Trial?

kaj
Posts: 3
Joined: Tue 07 Mar 2006 09:43

Re: Debug version crashing.

Post by kaj » Tue 14 Mar 2006 11:50

I have rebuilt the DLL and problem seems to have gone away. Must have been some glitch on my system.

Sorry to trouble you.

kaj (Guest last week)

Post Reply