An "Access violation" error may occur when you run an ADO query to obtain a recordset in asynchronous mode on a computer that is running Windows Server 2008

Article ID: 982592 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You have a computer that is running Windows Server 2008. The computer has multiple processes.
  • You run an ActiveX Data Objects (ADO) query to obtain a recordset in asynchronous mode.
In this scenario, ADO may fail. When this issue occurs, you may receive the following error message:
Access violation in msado15 while executing a command asynchronously
Additionally, a memory leak occurs.

CAUSE

This issue occurs because the thread that performs the asynchronous query tries to access a member of a structure that was reset by the main thread.

When the asynchronous thread sets the Execute state to EXECSTATE_NOTEXECUTING, the thread suspends. However, the main thread assumes that the asynchronous thread is finished and then resets a structure. Therefore, the asynchronous thread encounters an "Access violation " error when the thread tries to access a member of the structure.

When the main thread adds two reference counts to a recordset, one of the reference counts is used by an output parameter. However, the recordset may not be sent to the output parameter if the error is encountered. Therefore, a memory leak occurs.

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 the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

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, contact 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:
http://support.microsoft.com/contactus/?ws=support
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, you must be running Windows Server 2008 Service Pack 2 (SP2).

For more information about how to obtain a Windows Server 2008 service pack, click the following article number to view the article in the Microsoft Knowledge Base:
968849 How to obtain the latest service pack for Windows Server 2008

Registry information

To use the hotfix, you do not have to make any changes to the registry.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The English (United States) version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows Server 2008 file information notes
Important Windows Vista hotfixes and Windows Server 2008 hotfixes are included in the same packages. However, only "Windows Vista" is listed on the Hotfix Request page. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows Vista" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.
    Collapse this tableExpand this table
    VersionProductSR_LevelService branch
    6.0.600 1 . 22xxxWindows Server 2008SP1LDR
    6.0.600 2 . 22xxxWindows Server 2008SP2LDR
  • Service Pack 1 is integrated into the release version of Windows Server 2008. Therefore, RTM milestone files apply only to Windows Vista. RTM milestone files have a 6.0.0000.xxxxxx version number.
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 and for Windows Vista" section. MUM files and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintaining the state of the updated component. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows Server 2008 and of Windows Vista
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimeHashesPlatform
Msado15.dll6.0.6001.22679708,60828-Apr-201016:26MD5: 7348BFAFF6E0C7AF3275748004D182C9
SHA1: 679E3E280077F0DB90E96934BDF948141E8047BE
x86
Msado15.dll6.0.6002.22393708,60828-Apr-201017:48MD5: E3B4EC4CB327821764EDBF01978B71E5
SHA1: FC1C2471CF970828FF963DD141530FD730330A42
x86
For all supported x64-based versions of Windows Server 2008 and of Windows Vista
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimeHashesPlatform
Msado15.dll6.0.6001.22679978,94428-Apr-201017:00MD5: 33EDFF62C7152B00DFF5AE8E67807F45
SHA1: 0D89906E5EBA6CD0614B831E8AEDADC198A232BC
x64
Msado15.dll6.0.6002.22393978,94428-Apr-201017:46MD5: B33CDF642B8341803FA5E43619D8B971
SHA1: 7B8791DFF5930129ED392E19CD78A7B621189777
x64
Msado15.dll6.0.6001.22679708,60828-Apr-201016:26MD5: 7348BFAFF6E0C7AF3275748004D182C9
SHA1: 679E3E280077F0DB90E96934BDF948141E8047BE
x86
Msado15.dll6.0.6002.22393708,60828-Apr-201017:48MD5: E3B4EC4CB327821764EDBF01978B71E5
SHA1: FC1C2471CF970828FF963DD141530FD730330A42
x86
For all supported IA-64-based versions of Windows Server 2008
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimeHashesPlatform
Msado15.dll6.0.6001.226791,798,14428-Apr-201016:31MD5: D20A937C4EE13C9235DFD745A3D19D3E
SHA1: 1151B00CF35B481098F03678AEE9839E1BDD89B9
IA-64
Msado15.dll6.0.6002.223931,798,14428-Apr-201017:26MD5: A04590E3C3E1897131DB6344638BD143
SHA1: ECD1FF0CEE3911A8448F9905785A12FE493EE00B
IA-64
Msado15.dll6.0.6001.22679708,60828-Apr-201016:26MD5: 7348BFAFF6E0C7AF3275748004D182C9
SHA1: 679E3E280077F0DB90E96934BDF948141E8047BE
x86
Msado15.dll6.0.6002.22393708,60828-Apr-201017:48MD5: E3B4EC4CB327821764EDBF01978B71E5
SHA1: FC1C2471CF970828FF963DD141530FD730330A42
x86

STATUS

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

MORE INFORMATION

For more information about how to create an Asynchronous Connection in ADO, click the following article number to view the article in the Microsoft Knowledge Base:
194960 How to Create an Asynchronous Connection in ADO
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

Additional file information

Additional file information for Windows Server 2008

Additional files for all supported x86-based versions of Windows Server 2008
Collapse this tableExpand this table
File nameX86_127373a30fc0a853c867ae5227217abe_31bf3856ad364e35_6.0.6002.22393_none_52380957bc5e2d19.manifest
File versionNot applicable
File size737
Date (UTC)29-Apr-2010
Time (UTC)06:11
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameX86_3fe43ece312522c5e7875878fab4a738_31bf3856ad364e35_6.0.6001.22679_none_5171fc99e8f516ba.manifest
File versionNot applicable
File size737
Date (UTC)29-Apr-2010
Time (UTC)06:11
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameX86_microsoft-windows-m..ents-mdac-ado15-dll_31bf3856ad364e35_6.0.6001.22679_none_0c77dbf589f4ea09.manifest
File versionNot applicable
File size128,201
Date (UTC)28-Apr-2010
Time (UTC)18:46
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameX86_microsoft-windows-m..ents-mdac-ado15-dll_31bf3856ad364e35_6.0.6002.22393_none_0e42ac498730df05.manifest
File versionNot applicable
File size128,201
Date (UTC)28-Apr-2010
Time (UTC)19:45
SHA-1 hashNot applicable
MD5 hashNot applicable
Additional files for all supported x64-based versions of Windows Server 2008
Collapse this tableExpand this table
File nameAmd64_49970e950024625a33da31d1833c8f54_31bf3856ad364e35_6.0.6002.22393_none_ce789240d1ef325c.manifest
File versionNot applicable
File size1,122
Date (UTC)29-Apr-2010
Time (UTC)06:11
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameAmd64_8987a86cd484b8f079944725eb71e437_31bf3856ad364e35_6.0.6001.22679_none_0e310ec350ee0c89.manifest
File versionNot applicable
File size1,122
Date (UTC)29-Apr-2010
Time (UTC)06:11
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameAmd64_microsoft-windows-m..ents-mdac-ado15-dll_31bf3856ad364e35_6.0.6001.22679_none_6896777942525b3f.manifest
File versionNot applicable
File size128,252
Date (UTC)28-Apr-2010
Time (UTC)19:20
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameAmd64_microsoft-windows-m..ents-mdac-ado15-dll_31bf3856ad364e35_6.0.6002.22393_none_6a6147cd3f8e503b.manifest
File versionNot applicable
File size128,252
Date (UTC)28-Apr-2010
Time (UTC)19:40
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameX86_microsoft-windows-m..ents-mdac-ado15-dll_31bf3856ad364e35_6.0.6001.22679_none_0c77dbf589f4ea09.manifest
File versionNot applicable
File size128,201
Date (UTC)28-Apr-2010
Time (UTC)18:46
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameX86_microsoft-windows-m..ents-mdac-ado15-dll_31bf3856ad364e35_6.0.6002.22393_none_0e42ac498730df05.manifest
File versionNot applicable
File size128,201
Date (UTC)28-Apr-2010
Time (UTC)19:45
SHA-1 hashNot applicable
MD5 hashNot applicable
Additional files for all supported IA-64-based versions of Windows Server 2008
Collapse this tableExpand this table
File nameIa64_8568b42258de733ec25b15ef5a924eba_31bf3856ad364e35_6.0.6001.22679_none_a77645ac11916233.manifest
File versionNot applicable
File size1,120
Date (UTC)29-Apr-2010
Time (UTC)06:11
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameIa64_c9570c74895fd5d77545372d9ee7905e_31bf3856ad364e35_6.0.6002.22393_none_a31aba82ca907550.manifest
File versionNot applicable
File size1,120
Date (UTC)29-Apr-2010
Time (UTC)06:11
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameIa64_microsoft-windows-m..ents-mdac-ado15-dll_31bf3856ad364e35_6.0.6001.22679_none_0c797feb89f2f305.manifest
File versionNot applicable
File size128,225
Date (UTC)28-Apr-2010
Time (UTC)18:30
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameIa64_microsoft-windows-m..ents-mdac-ado15-dll_31bf3856ad364e35_6.0.6002.22393_none_0e44503f872ee801.manifest
File versionNot applicable
File size128,225
Date (UTC)28-Apr-2010
Time (UTC)18:55
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameX86_microsoft-windows-m..ents-mdac-ado15-dll_31bf3856ad364e35_6.0.6001.22679_none_0c77dbf589f4ea09.manifest
File versionNot applicable
File size128,201
Date (UTC)28-Apr-2010
Time (UTC)18:46
SHA-1 hashNot applicable
MD5 hashNot applicable
File nameX86_microsoft-windows-m..ents-mdac-ado15-dll_31bf3856ad364e35_6.0.6002.22393_none_0e42ac498730df05.manifest
File versionNot applicable
File size128,201
Date (UTC)28-Apr-2010
Time (UTC)19:45
SHA-1 hashNot applicable
MD5 hashNot applicable

Properties

Article ID: 982592 - Last Review: January 25, 2011 - Revision: 2.0
APPLIES TO
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Standard
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Datacenter without Hyper-V
  • Windows Server 2008 Enterprise without Hyper-V
  • Windows Server 2008 for Itanium-Based Systems
  • Windows Server 2008 Standard without Hyper-V
  • Windows HPC Server 2008
  • Windows HPC Server 2008 without Hyper-V
Keywords: 
kbqfe kbautohotfix kbhotfixserver kbsurveynew kbexpertiseadvanced kbfix KB982592

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com