Re: ADO high virtual memory usage



Hi
Delphi 7 is the tool.

Test app uses _release to remove the ref to the object.
There are no other refs so object should free.

Yes it probably does.
But if the Recordset is open, you are closing it first?

I am using VC++'s smart pointers, a model shutdown is

if (pRecordset != NULL)
{ if ((pRecordset->GetState() & (long)ADODB::adStateOpen) != 0)
pRecordset->Close();
pRecordset = NULL;
}

and "pRecordset = NULL" will force a release.

Stephen Howe


.