RE: [DUG]: BDE error $2501

1999-03-29 Thread Max Renshaw-Fox

Can't remember if this is the correct error code (240D is one of them) but
possibly you need to change the "SHAREDMEMLOCATION" in INIT on the
configuration tab ob the BDECfg.

There's a FAQ, or TechInfo, on borland.com about it, an acceptable settings.
However in short the default is EBDE; but anything, I start with 1000, which
works in 90% of cases, and increment from there seems to be OK.

Max

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, 29 March 1999 15:32
To: Multiple recipients of list delphi
Subject: [DUG]: BDE error $2501


Hi,

We are having some difficulty with a BDE error message. We are running two
BDE apps on an NT4 WS machine. When you run App1, then App2, all is fine.
However, if you run App2 and then App1, we get the following message:

"An error occurred while attempting to intialise the borland database engine
(Error$2501)"


Stepping through the code, the error is generated when executing the
following:
if dbDatabase.Session.GetAliasDriverName(dbDatabase.AliasName) = 'MSSQL'
then...

Any clues/hints??


---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz

---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz



RE: [DUG]: BDE error $2501

1999-03-29 Thread Gary T. Benner

[Reply]

Hi all,

At 20:08 on 29/03/1999 you wrote
>
>We are having some difficulty with a BDE error message. We are running two
BDE apps on an NT4 WS machine. When you run App1, then App2, all is fine.
However, if you run App2 and then App1, we get the following message:
>
>"An error occurred while attempting to intialise the borland database engine
(Error$2501)"


OK, this is easy - it had me "foxed" for some time, I had to "wade" "myles"
through the BDE help, and stressed out to the "max".  My customers were after
my "hyde", and I really felt "black and  "dunfor'", but I was saved from having to
eat "crowe", and my mind put at 'ease", when during a walk in the "garden" I
thought by "george", I know the answer! "Mark" my words I was "wright", and in
the "nic" of time, I had made the configuration change, and knew I had made a
"wise" decision. Oh dear, too many late nights on the keyboard!


The fix is to change the setting for SHAREDMEMLOCATION in the BDE setup -
Configuration | System | Init.

I use a value of "1000" ( less quotes ), but you may have to experiment to find a
suitable value. Range values are given in the BDE help. I have only seen it happen
in the NT machines. Since making the change I've not had any problems at all.

Kindest Regards

Gary





Gary Benner   -   Software Developer  [EMAIL PROTECTED]
Corporate Software New Zealand Limited   Auckland - New Zealand
tel: +64-9 846-6067 (24hr)   fax: +64-9 846-6152 mob: (021)-966-992
Software System Design  -  Consulting  -  Mentoring   -   Data Modelling
Client Server - Delphi  -  Interbase  - Oracle - Web-based Technologies
Electronic Automation and Systems - Microcontroller Design & Software
http://www.corporate.co.nz


Ref#: 41006




---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz



Re: [DUG]: BDE error $2501

1999-03-29 Thread Greg Nixon

I have found the same thing many times. I reported it to Boland and they
gave the following response:

>Thank you for submitting your bug report. My suspiscion is that all you
need to do is increase your shared >mem size. Otherwise, I cannot reproduce
this problem and I'll need you to increase a more details bug report >to fix
it in the future.

I tried this and it seemed to help a little but also gave other errors
(Memory Conficts) sometimes. If you find a better cure let me know.
Personally I reckon its a bug and it has done it since BDE 4.



-Original Message-
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Monday, 29 March 1999 17:01
Subject: [DUG]: BDE error $2501


Hi,

We are having some difficulty with a BDE error message. We are running two
BDE apps on an NT4 WS machine. When you run App1, then App2, all is fine.
However, if you run App2 and then App1, we get the following message:

"An error occurred while attempting to intialise the borland database engine
(Error$2501)"


Stepping through the code, the error is generated when executing the
following:
if dbDatabase.Session.GetAliasDriverName(dbDatabase.AliasName) = 'MSSQL'
then...

Any clues/hints??


---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz

---
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
  Website: http://www.delphi.org.nz