Discussion:
Cannot Initialize the Borland Database Engine
(too old to reply)
Dave
2005-06-27 18:53:01 UTC
Permalink
I am running web services (created with Delphi 4 Client/Server) on a Windows
2003 server.

These services are compiled as CGI Standalone Executables (i.e. {$APPTYPE
CONSOLE})
On the same machine, I am also running some TCP/IP Client/Server
applications.

With all these applications, I capture exception events and log them to my
error reporting systems.

I have a service application designed to monitor several web sites. Each
site works the same as all other sites, except that each site has it's own
database.

This monitor program executes a url at each site (one site at a time, one
second apart). The web service simply tests the BDE connection by executing
an sql to the paradox table and either returns the successful result or
returns an exception.

For a while all sites are monitored successfully then all at once every site
returns an exception: "Cannot Initialize the Borland Database engine".
It appears that sometimes, another web service application returns an
exception: "Directory Is Busy" when trying to access an MSSQL database. This
is an unrelated application.

At the same time, other BDE applications, some running as services and some
running on the console session also become frozen.
The Database Desktop, however is able to open tables most of the time, but
sometimes also hangs up.

The only common thing here is that it appears to be a meltdown of the BDE
because of "something".

The only way to clear this is to enter the task manager and to delete all
BDE applications.

What is going on here:

1st, I don't beleive that Net Dir settings are to blame. The application
dynamically creates its own session, using a tSession component. Setting the
Net Dir to a single directory on the machine that all applications use. The
private directory is set to the the same folder as the executable.

The Anonomous user has been granted Administrative priveleges (in order to
rule out security rights).

I am using BDE Version 3.0

I have set the BDE INIT to the following:

Language Driver: Paradox Ascii
Local Share: True
Low Memory Usage Limit: 32
MaxBufSize: 2048
MaxFileHandles: 4096
MemSize 16
MinBufSize: 128
MTS Pooling: True
Shared Mem Location: Blank, no value
Shared Mem Size: 20480
SqlQueryMode: Blank no value


I had tried a configuration using all default values of the BDE Init
Settings and still have the same problems.

I wish I had complete documentation on what are all the possible situations
that can cause this error

I would really like a solution to this, not a workaround.

FYI,

I have just purchased Delphi 2005 and have so many issues with it, it will
be months before I can upgrade these applications and dump paradox all
together.
Perhaps if upgrade the BDE?
Leslie Milburn
2005-06-28 03:03:51 UTC
Permalink
Post by Dave
Perhaps if upgrade the BDE?
Hi Dave,

Hopefully someone will jump in here and fully clarify, but from memory BDE
3.0 does not understand FAT32/Long filenames correctly (or something like
that). You need to upgrade to at least version 4 and depending upon table
languages (ie not international - ) you should go all the way to 5.2.2

Leslie.
Bill Todd
2005-06-28 13:40:18 UTC
Permalink
Leslie is right. I am surprised you can get BDE 3.0 to run at all on
Win 2003. You might check the version of IDAPI32.DLL to see if it is
really 3.0. You can upgrade to 5.2 easily by installing the BDE
Information Utility at http://ibinstall.defined.net . This may not cure
your problem since the BDE has other issues in Web apps but it is the
first thing to try.
--
Bill Todd (TeamB)
Loading...