FIX: Memory leak occurs when you use the Advanced Data Tablegram persistence mechanism to persist a hierarchical recordset to a Stream object (832921)
The information in this article applies to:
- Microsoft Data Access Components 2.7
- Microsoft Data Access Components 2.7 SP1
SYMPTOMSIn a Microsoft Visual Basic 6.0 application, when you use
the Advanced Data Tablegram (ADTG) persistence mechanism to persist a
hierarchical recordset to a Stream object by using the Recordset.Save method, a memory leak may occur.
Note To use the ADTG persistence mechanism, pass adPersistADTG as the PersistFormat parameter.CAUSEThe ADTG persistence mechanism retrieves the chapters that
correspond to a hierarchical recordset. However, even when you close the Stream object that you persisted the recordset to, and then you release this Stream object, the ADTG persistence mechanism does not release the
chapters. This mechanism incorrectly releases the chapters only when you close
the recordset and then release the recordset. Therefore, the behavior that is
mentioned in the "Symptoms" section may occur.RESOLUTIONA supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem. To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site: Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel. Date Time Version Size File name
--------------------------------------------------------------
21-Nov-2003 08:48 2.71.9045.0 307,200 Msadce.dll
21-Nov-2003 08:51 2.71.9045.0 57,344 Msadcf.dll
21-Nov-2003 08:51 2.71.9045.0 131,072 Msadco.dll
21-Nov-2003 08:51 2.71.9045.0 53,248 Msadcs.dll
21-Nov-2003 08:48 2.71.9045.0 147,456 Msadds.dll
21-Nov-2003 08:48 2.71.9045.0 180,224 Msdaprst.dll
21-Nov-2003 08:51 2.71.9045.0 110,592 Msdarem.dll
21-Nov-2003 08:51 2.71.9045.0 32,768 Msdfmap.dll NoticeThis hotfix is available as part of a cumulative hotfix package. When you receive this hotfix from Microsoft Product Support Services, the article number that is listed in the hotfix package may be different from the cumulative article number. For more information about the hotfix package, see the following article in the Microsoft Knowledge Base: 836799 FIX: Hotfixes are available for MDAC 2.7 Service Pack 1
WORKAROUNDTo work around the behavior that is mentioned in the
"Symptoms" section, immediately after you release the Stream object that you persisted the recordset to,
close the recordset, and then release the recordset. For
example, you can use the following code example to close and then to release a recordset that is named g_rs: g_rs.Close
Set g_rs = Nothing STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.REFERENCESFor additional
information, click the following article number to view the article in the
Microsoft Knowledge Base: 824684 Description of the Standard Terminology That Is Used to Describe Microsoft Software Updates For more information, visit the following Microsoft
Developer Network (MSDN) Web sites:
Modification Type: | Minor | Last Reviewed: | 10/25/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbPersistSt kbQFE kbcode kbfix kbbug KB832921 kbAudDeveloper |
---|
|