Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Database/dbExpressCore    [ Add a report in this area ]  
Report #:  67210   Status: Closed
TSQLConnection Driver property and DBX .ini file deployment
Project:  Delphi Build #:  12.0.3170.1698
Version:    12.0 Submitted By:   Bob Swart
Report Type:  Basic functionality failure Date Reported:  9/26/2008 7:49:23 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   265520
Resolution: Fixed (Resolution Comments) Resolved in Build: : 12.0.3250.18309
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: 34
Description
dbExpress applications compiled with Delphi 2009 now require the presence of the dbxdrivers.ini and dbxconnections.ini files (either in the current directory or with information specified in the registry?).

It used to be possible to deploy applications compiled with Delphi without the dbxdrivers.ini and dbxconnections.ini (and this should still be possible, of course).
Steps to Reproduce:
Produce a VCL Forms application with dbExpress (a TSQLConnection component pointing to some database is enough) and try to deploy it to a clean machine - without Delphi on it.
Workarounds
The previously suggested workaround doesn't work, sorry.
Attachment
None
Comments

Chee Yang Chau at 9/26/2008 6:18:05 PM -
I have a workaround solution to temporary get rid of the problem:
http://chee-yang.blogspot.com/2008/09/delphi-2009-using-dbx4-framework.html

Angel M. Aranguren Reyes at 9/27/2008 3:23:16 AM -
For me the problem (working with d2009) is bigger, because if I don't include the dbx ini files when the program executes raise a big error showing that windows detected a problem and the program must be closed.

Edmund Wong at 10/8/2008 3:24:22 AM -
Might my QC#67640 be equivalent to this report?  The problem is I haven't
even gotten to the deployment phase of the project.

During my foray into the bug-hunting, I noticed in the dbxcommon.pas,
line 6382,  List := FDrivers.LockList;  produces an empty list.  
Following that portion of the code,  line 6387 and 6420 all return
-1 for the index.  At this moment in time, I don't know what this means,
and perhaps someone can point out.  I'm still a bit overwhelmed with
reading the VCL source.



Ron van der Goes at 12/3/2008 4:43:05 AM -
dbxconnections.ini can be empty and dbxdrivers.ini only needs the first section with the identifier for the database you are using. For example, when you use MsSQL the only text you have to put in the drivers.ini is:         [Installed Drivers]
MSSQL=1

Server Response from: ETNACODE01