Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: A memory leak may occur when you use the Microsoft ActiveX Data Objects Library in Windows Vista, in Windows 7, in Windows Server 2008, or in Windows Server 2008 R2


View products that this article applies to.

Support for Windows Vista Service Pack 1 (SP1) ends on July 12, 2011. To continue receiving security updates for Windows, make sure you're running Windows Vista with Service Pack 2 (SP2). For more information, refer to this Microsoft web page: Support is ending for some versions of Windows (http://windows.microsoft.com/en-us/windows/help/end-support-windows-xp-sp2-windows-vista-without-service-packs) .

SQLVSTS bug number: 376237

↑ Back to the top


Symptoms

Consider the following scenario:
  • You are running one of the following operating systems:
    • Windows Server 2008
    • Windows Server 2008 R2
    • The release version of Windows Vista
    • Windows Vista Service Pack 1 (SP1)
    • Windows Vista Service Pack 2 (SP2)
    • Windows 7
  • You use the Microsoft ActiveX Data Objects Library (Msado15.dll) to access the ConnectionString property of the ADODB.Connection object.
In this scenario, a memory leak may occur.

Note This issue does not occur in Windows XP or in Windows Server 2003.

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, your computer must be running one of the following operating systems:
  • Windows Vista Service Pack 1 (SP1)
  • Windows Vista Service Pack 2 (SP2)
  • Windows Server 2008
  • Windows 7
  • Windows Server 2008 R2

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

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 item in Control Panel.
For all supported x86 version of Windows Vista and Windows Server 2008

Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.0.6000.21172708,60803-Dec-200913:30

For all supported x86 version of Windows Vista SP1�and Windows Server 2008


Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.0.6001.22574708,60803-Dec-200913:35


For all supported x86 version of Windows Vista SP2 and Windows 2008 SP2

Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.0.6002.22280708,60803-Dec-200913:30

For all supported x64 version of Windows Vista�and Windows Server 2008

Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.0.6000.21172991,23203-Dec-200914:10

For all supported x64 version of Windows Vista SP1�and Windows Server 2008

Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.0.6001.22574974,84803-Dec-200913:53

For all supported x64 version of Windows Vista SP2 and Windows 2008 SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.0.6002.22280974,84803-Dec-200913:33

For all supported Itanium-based version of Windows Server 2008 SP1

Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.0.6001.225741,798,14403-Dec-200913:45

For all supported Itanium-based version of Windows Server 2008 SP2

Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.0.6002.222801,798,14403-Dec-200913:16

For all supported x86 version of Windows 7

Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.1.7600.20589987,13604-Dec-200921:24

For all supported x64 version of Windows 7 and of Windows Server 2008 R2

Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.1.7600.205891,425,40804-Dec-200921:43

For all supported Itanium-based version of Windows Server 2008 R2

Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
Msado15.dll6.1.7600.205892,199,55204-Dec-200908:57

↑ Back to the top


Workaround

To work around this problem, set the Persist Security Info property to true in the connection string. For example, use the following string:
"Persist Security Info=True"
Note This method bypasses the problematic section of code.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


References

For more information about software update terminology, 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

↑ Back to the top


Keywords: kbautohotfix, kbfix, kbexpertiseadvanced, kbsurveynew, kbqfe, KB978042

↑ Back to the top

Article Info
Article ID : 978042
Revision : 4
Created on : 6/10/2011
Published on : 6/10/2011
Exists online : False
Views : 432