Microsoft KB Archive/911570

= FIX: An ADO application crashes after you install Windows Server 2003 SP1 or Windows XP SP2 =

Article ID: 911570

Article Last Modified on 3/21/2007

-

APPLIES TO


 * Microsoft Data Access Components 2.8 Service Pack 1
 * Microsoft Data Access Components 2.8

-





SYMPTOMS
After you install Microsoft Windows Server 2003 Service Pack 1 (SP1) or Microsoft Windows XP Professional Service Pack 2 (SP2), a Microsoft ActiveX Data Objects (ADO) application crashes. This problem occurs when the ADO application uses a pointer to a wide character string.

Note A pointer to a wide character string that is used by an Automation data-manipulation function is called a binary string or a BSTR.

For example, you may experience this problem when you use the following ADO CRecordset::Update code example to update a BSTR field with the value of a BSTR field from another record set. Dim rstComponenti as New ADODB.Recordset .... rstComponenti.Update &quot;description&quot;,rstComponentiApp.Fields(&quot;description&quot;)



CAUSE
This problem occurs because of a regression that was introduced in a post Microsoft Data Access Components (MDAC) 2.8 RTM version of the Msado15.dll file.



Service pack information
To resolve this problem, obtain the latest service pack for Windows Server 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

889100 How to obtain the latest service pack for Windows Server 2003

Hotfix file information
This hotfix contains only those files that are required to correct the issues that this article lists. This hotfix may not contain of all the files that you must have to fully update a product to the latest build.

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.

Windows Server 2003, Itanium-based versions


Technical support for Windows x64 editions
Your hardware manufacturer provides technical support and assistance for Microsoft Windows x64 editions. Your hardware manufacturer provides support because a Windows x64 edition was included with your hardware. Your hardware manufacturer might have customized the Windows x64 edition installation with unique components. Unique components might include specific device drivers or might include optional settings to maximize the performance of the hardware. Microsoft will provide reasonable-effort assistance if you need technical help with your Windows x64 edition. However, you might have to contact your manufacturer directly. Your manufacturer is best qualified to support the software that your manufacturer installed on the hardware.

For product information about Microsoft Windows XP Professional x64 Edition, visit the following Microsoft Web site:

http://www.microsoft.com/windowsxp/64bit/default.mspx

For product information about Microsoft Windows Server 2003 x64 editions, visit the following Microsoft Web site:

http://www.microsoft.com/windowsserver2003/64bit/x64/default.mspx



WORKAROUND
To work around this problem, append the Value property to the lines of ADO code that use pointers to wide character strings.

The modified line of ADO code appears similar to the following code example. rstComponenti.Update &quot;description&quot;, rstComponentiApp.Fields(&quot;description&quot;).Value



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in Windows Server 2003 Service Pack 2.



MORE INFORMATION
For more 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

Additional query words: kbmdac ado double free crash AV Winx64 Windowsx64 64bit 64-bit

Keywords: kbfix kbpubtypekc kbhotfixserver kbqfe KB911570

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.