Solved

Multi-launch

Posted on 1998-01-19
12
880 Views
Last Modified: 2010-04-04
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?
0
Comment
Question by:rainbowsoftware
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
  • 2
12 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1357011
? 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.
0
 

Author Comment

by:rainbowsoftware
ID: 1357012
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.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1357013
Do the applications use the same alias?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rainbowsoftware
ID: 1357014
No the applications are not using the same alias.
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1357015
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
0
 

Author Comment

by:rainbowsoftware
ID: 1357016
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.
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1357017
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
0
 

Author Comment

by:rainbowsoftware
ID: 1357018
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.

0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1357019
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
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1357020
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

0
 

Author Comment

by:rainbowsoftware
ID: 1357021
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
0
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 20 total points
ID: 1357022
You're welcome.  I'm submitting answer.  If I'm jumping the gun, just reject this answer...

Regards,
JB
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Downloading email attachments 2 92
Adoquery sql  left join does not work 25 116
DBGrid or StringGrid ? 6 131
Slow Restore if incremental backups using RDiff.exe 4 48
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question