285 Could not initialize BDE. Directory is busy.

Problem: Getting error "Could not initialize BDE: Directory is busy."

1: When launching Paradox.

Case 1:
Versions: All

Most possible cause:
Paradox is already running.
Solution:
To launch two instances of Paradox, each instance must have a separate private directory.
Try to launch Paradox with a -p switch on the command line specifying a different private directory, like
C:\Program Files\Corel\Paradox\Programs\pdxwin32.exe -p c:\data\pdoxpriv\
If that helps, look under Tools | Settings | Preferences | Database tab, to find out if there is anyone else running Paradox.

Case 2:
Version: Paradox 7.32
Environment: Win98 SE

Possible solution by: Tracey Palmer < traceyATseasoft.co.uk >
Date: 12 April 2002
Apparently Paradox 7 is likely to give the problems I've had if you have in excess of 500 fonts in the Font Control Panel (presumably TTF fonts). On checking my Fonts dir I found I had some 643 fonts installed. I removed some of them and now Paradox works perfectly.


See also:
see current bugs PX0703


2: When launching Delphi.

Solution by: "Bill Todd"
Date: 17 June 2005

Assuming you are using Delphi and not Paradox for Windows, the BDE will use the startup directory as the private directory and will not create any lock files. The BDE will ensure that any files it creates in the private directory have unique names so serveral sessions can share the same private directory safely.

If you set Session.PrivateDir or create any tables in the private directory then the lock files will be created and the the "Directory is busy" message can occur. It sounds like your application occasionally does something that locks the private directory.

To index