Re: Why all the connections?
- From: "Vitali Kalinin" <vitkalinin@xxxxxxxxx>
- Date: Tue, 31 Jan 2006 18:16:14 +0200
"Lars Sondergaard" <sorry@xxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:xn0ehw4nvfz3nc000@xxxxxxxxxxxxxxxxxxxxxxxxx
> 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
IDBInitialize is OleDB thing, which is used by ADO internally and Borland
doesn't use it in DbGo. Also connection pooling works for me as expected
with Delphi + ADO + MsSQL combination.
.
- 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
- Re: Why all the connections?
- From: Lars Sondergaard
- Why all the connections?
- Prev by Date: Re: Why all the connections?
- Next by Date: Re: Please help with a serious issue
- Previous by thread: Re: Why all the connections?
- Next by thread: Re: Why all the connections?
- Index(es):
Relevant Pages
|