Solved

Two BDE apps won't run together

Posted on 2002-05-08
15
298 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
[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
  • 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

624 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