Solved

Two BDE apps won't run together

Posted on 2002-05-08
15
293 Views
Last Modified: 2010-04-04
A customer is using our application on a machine that also has another BDE-based application installed.  He can run either app on its own, but not both together (the other app falls over with error initializing BDE).  Our app is Delphi 5, installed using bundled InstallShield.  I am setting private and net directories in my startup code if that matters - is it not possible to have two sessions running with different net dirs?

It seems that our app always stays running and the other one fails when trying to run both at once.

Any ideas?

Rob
0
Comment
Question by:robnorthcott
  • 5
  • 2
  • 2
  • +5
15 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6995980
>is it not possible to have two sessions running with
>different net dirs?

yes, is possible,
but not for the same database-directory,
therefore tell us:
-are the two appy sharing the same database-directory or same tables?

meikl ;-)
0
 

Author Comment

by:robnorthcott
ID: 6996044
Thanks for the reply Meikl,

No, the two apps are not using the same tables or directory.  The only common factor is that they both use the BDE.  The other app is one that runs on startup (bit like MS Office bar) but doesn't seem to access any BDE until the user selects an option - then it falls over with an error.  My app will run alongside the "toolbar" thing, but must be closed before the other app can open its own files.

Is there anything I could be doing that would "hog" the BDE?  I have run other BDE apps together before with no problems, so there must be something wrong here.

Rob
0
 
LVL 3

Expert Comment

by:SteveWaite
ID: 6996352
listening :)
0
Industry Leaders: 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!

 
LVL 4

Expert Comment

by:YodaMage
ID: 6996393
Did you consider increasing maxfilehandles and maxmemsize, as your issue might be capping out the defaults maximums of the BDE.
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6996410
good point, yodamage :-)

i myself have no idea yet :-(
0
 

Expert Comment

by:lottol
ID: 6998159
I had this problem everytime I reinstall system on my PC. I solve it by changing BDE settings as YodaMage said.
0
 

Author Comment

by:robnorthcott
ID: 6998969
Thanks,

I'll get them to try that and see if it helps.
Get back to you later!

Rob
0
 

Author Comment

by:robnorthcott
ID: 6999023
Doubling file handles and memory didn't solve the problem.  Each app runs on its own, so they can't possibly need more than double the defaults together can they?  Still gives the "Error occured while initialising BDE" message.

Bummer :(

The customer isn't making a big fuss about this, but it would be nice to get it working.
Any more cunning plans?  Anything appreciated...

Rob
0
 
LVL 4

Expert Comment

by:YodaMage
ID: 6999027
Out of curiosity, have both apps share NET DIR and tell us what happens.
0
 

Expert Comment

by:lottol
ID: 7000540
I still think it's a settings problem.
I think you'd lose nothing if you test my settings.

LOCAL SHARE false // optional
LOW MEMORY USAGE LIMIT 32    
MAXFILEHANDLES     48
MEMSIZE     64
MAXBUFSIZE 2048
MINBUFSIZE 128
MTS POOLING false // optional
SHAREDMEMLOCATION 2000 // optional
SHAREDMEMSIZE 32768
0
 

Author Comment

by:robnorthcott
ID: 7001437
Lottol:
Thanks, but that didn't make any difference.  Still gives an error initialising BDE.

YodaMage:
I'll try that if I get the chance (it's in a busy garage so not much time to fiddle with stuff while they're open).
I might be able to get them to use the same NETDIR if I set the default NETDIR to my app's directory (my app sets NETDIR and private dir in its startup code), assuming that the other app uses the defaults.

In the meantime, any other suggestions welcome!

Rob
0
 
LVL 2

Expert Comment

by:freshman3k
ID: 7020283
Hello,

Set LocalShare in the BDE Admin to true. I have 3 BDE applications open at one time, and seems to work just fine.

0
 

Author Comment

by:robnorthcott
ID: 7021746
Local share is set to True already - my app actually forces this setting when it runs because of problems that can occur if it is not set.

My next approach is to give YodaMage's suggestion a try, but things are a bit hectic at the moment, so it may not get done for a couple of weeks.

Thanks anyway

Rob
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9005209
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ with Refund

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0
 

Accepted Solution

by:
YensidMod earned 0 total points
ID: 9096689
Question is PAQ'd and no points refunded.

YensidMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 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