The information in this article applies to:
SYMPTOMS
When using the Visual C++ OLE DB consumer template classes and using the CBulkRowset class with the CTable or CCommand class, memory will leak if Open and Close are called multiple times without destructing the CTable or CCommand object. CAUSE
In Atldbcli.h there is a data member of CBulkRowset called m_phRow that points to an array of row handles. The CBulkRowset:BindFinished method of the class allocates storage for a new set of row handles and assigns the allocation to m_phRow. The array is then deleted in the class destructor. RESOLUTIONThe resolution is to add code to free the memory immediately after calling Close. For example:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. Additional query words:
Keywords : kbATL kbDatabase kbOLEDB kbVC kbVC600bug kbConsumer kbGrpVCDB kbDSupport |
Last Reviewed: November 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |