Is this correct? (TADOConnection)
- From: "Frederico Pissarra" <me@xxxxxxxxxxx>
- Date: Fri, 20 Oct 2006 16:59:59 -0300
Hello!!!
Taking a look at ADODB unit in $(DELPHI)\Source\VCL (I'm using D7 here), you
can see the following code:
-------------%<------------cut here -------------%<------------------------
destructor TADOConnection.Destroy;
begin
Destroying;
Close;
ClearRefs;
FreeAndNil(FCommands);
if FConnEventsID > 0 then
OleCheck(ConnectionPoint.UnAdvise(FConnEventsID));
FConnEventsID := 0;
FConnectionObject := nil;
inherited Destroy;
end;
-------------%<------------cut here -------------%<------------------------
Notice that FConnectionObject is not released (calling IUnknown.Release),
but the reference simply will point to nil.
Is this correct?
[]s
Fred
.
- Follow-Ups:
- Re: Is this correct? (TADOConnection)
- From: Bill Dekleris
- Re: Is this correct? (TADOConnection)
- From: danielk1
- Re: Is this correct? (TADOConnection)
- Prev by Date: Re: Saving Image/Picture to Database using ADO
- Next by Date: Add field to ADOTable and a Column for a tDbGrid at runtime
- Previous by thread: Saving Image/Picture to Database using ADO
- Next by thread: Re: Is this correct? (TADOConnection)
- Index(es):