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

BDE : Error msg "Name not unique in this context"

991 views
Skip to first unread message

David VINCENT

unread,
Aug 4, 1999, 3:00:00 AM8/4/99
to
Hi,

I'm using Delphi 3.0. My application is a COM server using database
connections. I Create database alias on the fly.

My problem is the following :
When I try to run multiple instance of my server I periodically have the
message "Name not unique in this context".

Does someone have an exact explanation of this ? What can I do to bypass
this problem ?

Thxs

David


L. S. Lichtmann

unread,
Aug 4, 1999, 3:00:00 AM8/4/99
to
I can't give an exact explanation for your situation, but I encountered this
same message when trying to build a multiuser data server for a 3-tier
application. The solution was to use an explicit TSession component with
the AutoSessionName property set to true.

David VINCENT wrote in message <7o9rcm$p1...@forums.borland.com>...

pop01.ny.us.ibm.net

unread,
Aug 4, 1999, 3:00:00 AM8/4/99
to
I got this message when a DLL created a DataModule a second time without a
"free" of the previous one (e.g. a second call of a DLL function). Check if
you free all components after using it.

Robert

Jeff Overcash (TeamB)

unread,
Aug 5, 1999, 3:00:00 AM8/5/99
to
One way around this is to set the HandleShared (or is it SharedHandle) to true
for the TDatabase object.

David VINCENT wrote:
>
> Hi,
>
> I'm using Delphi 3.0. My application is a COM server using database
> connections. I Create database alias on the fly.
>
> My problem is the following :
> When I try to run multiple instance of my server I periodically have the
> message "Name not unique in this context".
>
> Does someone have an exact explanation of this ? What can I do to bypass
> this problem ?
>
> Thxs
>
> David

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
The mist crawls from the canal like some primordial phantom of romance
To curl, under the cascade of neon pollen. While I sit tied to the phone
like some expectant father, your carnation will rot in a vase.
(Fish)
--

ChengDi

unread,
Aug 19, 1999, 3:00:00 AM8/19/99
to

The database component must have a UNIQUE databasename,otherwise you will
got the problem "Name not unique in this context".May be you can set the
handleshared(public) property to True to avoid this problem,or you can study
the Delphi demo "Bkquery" for a method to get a unique databasename.
0 new messages