Error message when you pass a variant between a COM client and a COM server in Windows: "0x800706F7 (The stub received bad data)"

Taikoma: Windows 7 EnterpriseWindows 7 Home BasicWindows 7 Home Premium

Symptoms


Consider the following scenarios on a computer that is running Windows 7, Windows Vista, Windows Server 2008 R2, or Windows Server 2008:
  • You pass a variant from a COM client to a COM Server. The variant contains a single user-defined data type (UDT) or a SafeArray of UDTs.
  • You pass a variant from a COM Server to a COM client. The variant contains a single user-defined data type (UDT) or a SafeArray of UDTs.
In both scenarios, the variant is not passed successfully. Additionally, you receive the following error message:
0x800706F7 (The stub received bad data)

Cause


This problem occurs because of an error in the Oleaut32.dll file. Because of the error, you cannot marshal UDTs that are wrapped in a variant.

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: 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

You must apply this hotfix on a computer that is running one of the following operating systems:
  • Windows Vista Service Pack (SP1)
  • Windows Vista Service Pack (SP2)
  • Windows Server 2008
  • Windows Server 2008 SP2
  • Windows Server 2008 R2
  • Windows 7
For more information about how to obtain a Windows Vista service pack, click the following article number to view the article in the Microsoft Knowledge Base:

935791 How to obtain the latest Windows Vista service pack

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

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.
Windows Vista and 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.
    VersionProductSR_LevelService branch
    6.0.600
    1.
    22xxx
    Windows Vista and Windows Server 2008SP1LDR
    6.0.600
    2.
    22xxx
    Windows Vista and Windows Server 2008SP2LDR
  • Service Pack 1 is integrated into the release version of Windows Server 2008.
  • 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 maintain the state of the updated components. 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
File nameFile versionFile sizeDateTimePlatform
Oleaut32.dll6.0.6001.22544563,20019-Oct-200914:10x86
Oleaut32.dll6.0.6002.22247563,71219-Oct-200913:50x86
For all supported x64-based versions of Windows Server 2008 and of Windows Vista
File nameFile versionFile sizeDateTimePlatform
Oleaut32.dll6.0.6001.22544847,87219-Oct-200915:20x64
Oleaut32.dll6.0.6002.22247846,84819-Oct-200913:47x64
Oleaut32.dll6.0.6001.22544563,20019-Oct-200914:10x86
Oleaut32.dll6.0.6002.22247563,71219-Oct-200913:50x86
For all supported IA-64-based versions of Windows Server 2008
File nameFile versionFile sizeDateTimePlatform
Oleaut32.dll6.0.6001.225441,987,07219-Oct-200914:15IA-64
Oleaut32.dll6.0.6002.222471,987,07219-Oct-200913:42IA-64
Oleaut32.dll6.0.6001.22544563,20019-Oct-200914:10x86
Oleaut32.dll6.0.6002.22247563,71219-Oct-200913:50x86
Windows 7 and Windows Server 2008 R2 file information notes
Important Windows 7 hotfixes and Windows Server 2008 R2 hotfixes are included in the same packages. However, hotfixes on the Hotfix Request page are listed under both operating systems. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows 7/Windows Server 2008 R2" 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.
    VersionProductSR_LevelService branch
    6.1.760
    0.
    20xxx
    Windows 7 and Windows Server 2008 R2RTMLDR
  • 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 R2 and for Windows 7" section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. 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 7

File nameFile versionFile sizeDateTimePlatform
Oleaut32.dll6.1.7600.20554571,90421-Oct-200906:05x86

For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2

File nameFile versionFile sizeDateTimePlatform
Oleaut32.dll6.1.7600.20554861,18421-Oct-200906:37x64

For all supported IA-64-based versions of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Oleaut32.dll6.1.7600.205542,039,29621-Oct-200904:54IA-64

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 marshaling details, visit the following Microsoft Developer Network (MSDN) Web site: For more information about user-defined data types (UDTs), visit the following MSDN Web sites: