The information in this article applies to:
SYMPTOMSWhen you use the OLE DB Consumer template classes, columns that are mapped to BSTRs or interfaces leak memory (for example, IUnknown or ISequentialStream). The leak occurs after each move through the rowset. CAUSEThe OLE DB Consumer templates do not free BSTRs, VARIANTs, interfaces, or chapters that are retrieved after moving to a record. RESOLUTIONYou must explicitly call CAccessorRowset::FreeRecordMemory() to free the BSTRs, VARIANTs, interfaces, or chapters allocated for each record. Call FreeRecordMemory() before moving to the next record. STATUSThis behavior is by design. REFERENCESVisual C++ version 6.0: CAccessorRowset::FreeRecordMemory(); Additional query words:
Keywords : kbtemplate kbOLEDB kbVS600 |
Last Reviewed: April 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |