Link to home
Start Free TrialLog in
Avatar of rainbowsoftware
rainbowsoftware

asked on

Multi-launch

When launching more than one Delphi application, I get a database initialization errormessage on a PC without Delphi installed. What do I have to do, in order to run two or more applications at the same time?
Avatar of ZifNab
ZifNab

? Isn't it just because you haven't installed the BDE?
And one (first) delphi application doesn't uses it, but your second is?

Just a guess,
Zif.
Avatar of rainbowsoftware

ASKER

Maybe I forgot to tell, it is database programs and I am using the InstallShield installprogram to build installdiskettes and I do include a partial BDE installation with a Paradox driver as drivertype. The applications works fine, but not more than one application at the same time.
Do the applications use the same alias?
No the applications are not using the same alias.
If you copy & run the Borland BDE Administrator on this PC, does it show ALL the info for both aliases, i.e.:
  Type = Standard
  Default Driver = Paradox
  Enabled BCD = False
  Path = C:\Whatever...

Are you opening databases over a network?  If so, what is the Paradox NetDir (in BDE Admin, under Configuration | Drivers | Native | Paradox) set to?

JB
Running the BDEcfg32.exe shows that all the aliases are registered as Standard, Paradox and the correct paths.
I don't know what Enabled BCD=False means and it is not mentioned anywhere, maybe because I'm running Delphi 2.0.
I have checked the IPAPI32.cfg and the aliases are correct.
I am not using a network.
Do you get the error "Directory is busy" message?  This is probably caused by the "Private Dir" (TSession) setting. Try to set the Session.PrivateDir to different locations at the start of the program (preferably in some unique unit initialization section).

If that doesn't help, let me know exactly what the error msg is that you get.

JB
My applications don't have a Session component and the
ErrorMsg is:

Exception EDatabaseError in module TELEFON.EXE at 0004C72E. An error occurred while attempting to initialize the Borland Database Engine (Error$210C).

Now I tried to use a Session Component, but no matter which directory I use for PrivateDir, I receive the message Dir is Busy.

This is strange...

BTW - you don't need to have a Session component on your form because Delphi creates one if you don't already have one.  Delphi's default session can be accessed by "Session.Whatever".

What is the "Net Dir" setting in BDE Admin under Configuration | Drivers | Native | Paradox?

JB
Error $210C is "Trying to load multiple IDAPIxx.DLL"

Have you got only one installation of the BDE?  Do a search for IDAPI32.DLL to see if this is the case.

JB

JB, you got the keyword: IDAPI32.DLL
I had an IDAPI32.DLL for each application in different directories.
Now I have a common dir for boths applications and it works.
Thanks a lot.
Rainbow
ASKER CERTIFIED SOLUTION
Avatar of JimBob091197
JimBob091197

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial