Solved

Two BDE apps won't run together

Posted on 2002-05-08
15
290 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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
Run video youtube webbrowse 10 65
How to renew a Delphi rad-studio licence? 5 69
JAudiorecorder record freezing the app 29 76
firemonkey keyboard covers the controls 1 37
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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