FIX: ADO 2.5 Leaks Resources When Using Stream and Record Objects (282177)
The information in this article applies to:
- Microsoft Data Access Components 2.5 SP1
- Microsoft Data Access Components 2.5
This article was previously published under Q282177 SYMPTOMS
When marshalling data in-process using ActiveX Data Objects (ADO) Record or Stream objects, a memory leak may occur that can eventually cause the process to run out of memory. This leak does not occur with other ADO objects such as Command and Recordset objects.
This leak occurs in Microsoft Data Access Components (MDAC) 2.5 but does not occur in MDAC 2.6.
CAUSE
The Record and Stream objects use the Active Template Library (ATL) AtlMarshalPtrInProc function to create a stream that is used to send proxy information back to the caller. When the Record and Stream objects are destroyed, the Release function is simply called on the stream, without first calling the AtlFreeMarshalStream function to free the memory allocated for this stream.
RESOLUTIONMDAC To resolve this problem, obtain the latest service pack for Microsoft MDAC 2.5. For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 293312INFO: How to Obtain the Latest MDAC 2.5 Service Pack
The English version of this fix should have the following file attributes or later:
Date Version Size File name
------------------------------------------------------------
12/14/2000 2.53.6013.0 491,792 bytes Msado15.dll
Windows 2000To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack
The English version of this fix should have the following file attributes or later:
Date Time Version Size File name
----------------------------------------------------------
5/29/2001 02:56p 2.52.6019.1 487,696 Msado15.dll
WORKAROUND
There is no workaround for this problem with MDAC 2.5.
STATUSMDACMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft MDAC 2.5 Service Pack 3.
This problem does not occur in MDAC 2.6.
Windows 2000Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.
Modification Type: | Minor | Last Reviewed: | 9/26/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbMDAC250SP3fix kbADO260fix kbbug kbfix kbMDAC260fix kbWin2000sp3fix KB282177 |
---|
|