Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help! BDE Error $2501 - Sharemem doesn't help!!

278 views
Skip to first unread message

Ken Friesen

unread,
Jun 19, 1998, 3:00:00 AM6/19/98
to

At one particular client's, we are getting a BDE Error 2501 when we
try to make a second connection to the BDE. We have two apps, the
data entry app (D3) and the report writing app (B1 with all patches).
The two cannot be started together but both work independantly. The
report app is very straightforward - just a simple database connection
using Builder 1. This is giving us the most grief. Multiple
connections in different processes can be created until this app
starts. Then no app can be started without a 2501 error. The report
writer fails with a 2501 error if there is already a bde session
active.

I have tried uping all memory settings in the BDE - both 4.51 and 4.01
and installing to different machines at this company. The computers
are NT 4 SR3 machines running on an NT network with Admin rights.
This problem occured both with a Paradox database and with an SQL
Anywhere database. The Delphi 3 programs seem to have less problems.
Has anyone experienced such a problem? Is the solution to upgrade
builder 1 to builder 3??

Any help would be greatly appreciated!

Scott Frolich [Inprise]

unread,
Jun 19, 1998, 3:00:00 AM6/19/98
to

Ken Friesen

unread,
Jun 23, 1998, 3:00:00 AM6/23/98
to

This hasn't solved the problem ... what is the correct syntax to set
the address. Would it be 1000, 0x10000000,10000000 or something
else??

Ken Friesen

unread,
Jun 23, 1998, 3:00:00 AM6/23/98
to

On Fri, 19 Jun 1998 11:09:37 -0700, "Scott Frolich [Inprise]"
<sfro...@corp.inprise.com> wrote:

>Ken Friesen wrote:
>>
>> At one particular client's, we are getting a BDE Error 2501 when we
>> try to make a second connection to the BDE. We have two apps, the
>> data entry app (D3) and the report writing app (B1 with all patches).
>> The two cannot be started together but both work independantly. The
>> report app is very straightforward - just a simple database connection
>> using Builder 1. This is giving us the most grief. Multiple
>> connections in different processes can be created until this app
>> starts. Then no app can be started without a 2501 error. The report
>> writer fails with a 2501 error if there is already a bde session
>> active.
>>
>> I have tried uping all memory settings in the BDE - both 4.51 and 4.01
>> and installing to different machines at this company. The computers
>> are NT 4 SR3 machines running on an NT network with Admin rights.
>> This problem occured both with a Paradox database and with an SQL
>> Anywhere database. The Delphi 3 programs seem to have less problems.
>> Has anyone experienced such a problem? Is the solution to upgrade
>> builder 1 to builder 3??
>>
>> Any help would be greatly appreciated!
>Hello,
> please read: http://www.inprise.com/devsupport/sqllinks/pub-88.html
>
> Scott

I just found a bit more documentation on your site at:
http://www.inprise.com/devsupport/bde/fixes/451/documentation.html

It says:
_________________________________________________

Problem:

The documentation for SHAREDMEMLOCATION
on the 'System INIT settings' page in
BDEADMIN.HLP is somewhat unclear. The memory
addresses specified are correct, but to change
those settings you only need to specify the upper
word of the address.

Please fix for BDE 4.5 because the existing
information can be misleading.

_________________________________________________

It states that only the upper word needs specification - I take that
to mean that I can just enter a string between "1000 " and "7F00".

I tried both these numbers to no avail ... rebooting after each try.
I have some very frustrated customers. I am told that this once
happened on our site and the fix was to format the harddrive and
reinstall. Our customers are unwilling to do this. Any other ideas??


Javier Arias Gonzalez (ETS)

unread,
Jun 24, 1998, 3:00:00 AM6/24/98
to

I have the same problem and I don't know any way to solve it, but I'm sure
that format the hard drive and reinstall is not the solution, I tryed and
don't work.

Javier Arias Gonzalez (ETS)

unread,
Jun 24, 1998, 3:00:00 AM6/24/98
to

I will aprecite any help with this problem because I stoped my development
by this problem.

--
Javier Arias Gonzalez
jav...@ets.es
http://www.ets.es
> _________________________________________________

Ken Friesen

unread,
Jun 24, 1998, 3:00:00 AM6/24/98
to

On Tue, 23 Jun 1998 23:49:35 GMT, g.t....@mail.hh.provi.de (T.
Christopher) wrote:

>On Tue, 23 Jun 1998 20:38:25 GMT, some...@somewhere.com (Ken Friesen) wrote:
>
>-
>-On Fri, 19 Jun 1998 11:09:37 -0700, "Scott Frolich [Inprise]"
>-<sfro...@corp.inprise.com> wrote:
>-
>->Ken Friesen wrote:
>->>
>->> At one particular client's, we are getting a BDE Error 2501 when we
>->> try to make a second connection to the BDE.
>
>Hi Ken,
>
>does any of your apps use a DBRichedit-control? If yes, then this might be the problem and I
>could give you some mor info about that.
>
>Thomas

No, the problem app doesn't use any visual db controls at all, just a
couple TQuery components and a TDatabase. We also tried recompiling
the C++ project in Builder 3 (our other app is using D3). This didn't
help either.

Stefan Bodingh

unread,
Jun 25, 1998, 3:00:00 AM6/25/98
to

This is a known problem with the BDE Admin...
For NT I use to set SHAREDMEMLOCATION to 7000 and it works every time if you
know the problem with BDE Admin (it does not write this value to the
Registry).
Use regedit or write your own program to set
[HKEY_LOCAL_MACHINE\SOFTWARE\borland\Database Engine\Settings\SYSTEM\INIT]

"SHAREDMEMLOCATION"="7000"
--
____________________________________________
: Stefan Bodingh - BC
: Paradox and Delphi Consulting
: Located in Sweden
: mailto:stefan....@swipnet.se
: http://home2.swipnet.se/~w-27915/
: Tel +46 8 745 46 10
____________________________________________


Javier Arias Gonzalez (ETS) wrote in message
<01bd9f89$52d700c0$0c646464@corias>...

Bill Curtis

unread,
Jun 25, 1998, 3:00:00 AM6/25/98
to

To all those who have noticed the behavior described below (ie: System and
Driver settings not being written to the registry):

In the BDE Administrator the "Object" | "Options" | "Save for use with" should
be set to
"Windows 95/NT only". This will save all System and Driver settings to the
registry.

When this option is set to "Windows 3.1 and Windows 95/NT" all changes are saved
to just the CFG file.

If you wish to save new and updated System, Driver and Database/Alias settings
to the CFG file then the "Save for use with" option should be toggled to
"Windows 95/NT only", config settings updated and then the "Save for use with"
option changed back to "Window 3.1..." etc. This will ensure that changes are
written to both the CFG file (for 16bit compatibility) and to the registry (for
32bit compatibility).

We will look into clarifying the 32bit System and Driver behavior (ie: reading
32bit only settings from the registry).

Bill

0 new messages