Re: Why all the connections?
- From: "Lars Sondergaard" <sorry@xxxxxxxxx>
- Date: 31 Jan 2006 08:00:00 -0700
Vitali Kalinin wrote:
> I meant that DbGo is just a wrapper around ADO and I am almost sure
> that if you will port yours test case to VB, you will get same
> results. Also I personally think that yours test case is good example
> of No-No technique with ADO.
>
I fully agree that the test case is not an example of good technique
but its the fastest way to show the problem :-) I have tried to use
VB/VS 2005 and can get that to work without getting all the connections.
I have done a lot of investigation and here are a few quotes from MS KB
articles:
- "Pooling will not be enabled if you call CoCreateInstance directly on
the CLSID of the data provider."
- "Do not use IDBInitialize::Uninitialize. Use IDBInitialize::Release
instead. If you call Uninitialize, the connection you were using will
be flushed from the pool. This is because the user can change the
properties of the connection after calling Uninitialize."
Looking at the following code in ADO.PAS Borland is not following these
"tips" and this is the problem I think....
//
*********************************************************************//
// Interface: IDBInitialize
// GUID: {0C733A8B-2A1C-11CE-ADE5-00AA0044773D}
//
*********************************************************************//
IDBInitialize = interface(IUnknown)
['{0C733A8B-2A1C-11CE-ADE5-00AA0044773D}']
function Initialize: HResult; stdcall;
function Uninitialize: HResult; stdcall;
end;
Anyway, thanks for your input. I do hope someone from Borland will have
the time to look at it eventually.
--
Lars Sondergaard
.
- Follow-Ups:
- Re: Why all the connections?
- From: Vitali Kalinin
- Re: Why all the connections?
- References:
- Why all the connections?
- From: Kevin Davidson
- Re: Why all the connections?
- From: Lars Sondergaard
- Re: Why all the connections?
- From: Vitali Kalinin
- Re: Why all the connections?
- From: Lars Sondergaard
- Re: Why all the connections?
- From: Vitali Kalinin
- Why all the connections?
- Prev by Date: Re: Why all the connections?
- Next by Date: Re: Why all the connections?
- Previous by thread: Re: Why all the connections?
- Next by thread: Re: Why all the connections?
- Index(es):
Relevant Pages
|