Solved

Two BDE apps won't run together

Posted on 2002-05-08
15
288 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now