You may experience stability issues if you use the Windows 2000 Post-Service Pack 2 COM+ 1.0 rollup package together with version 5.1 of the Scripting Runtime object library (323240)



The information in this article applies to:

  • Microsoft Windows 2000 Professional SP2, when used with:
    • Microsoft COM+ 1.0

This article was previously published under Q323240

SYMPTOMS

You may experience stability issues if you use the Microsoft Windows 2000 Post-Service Pack 2 (SP2) COM+ 1.0 rollup package together with version 5.1 of the Microsoft Scripting Runtime object library.

CAUSE

The version of Cscript.exe that is included with version 5.1 of the Scripting Runtime object library may pass a null VARIANT variable based on the value that is passed to the Wscript.Echo method.

When you call the Wscript.Echo method by using two VARIANT variables as parameters, the VariantChangeType method calls the ErrStringCopyNoNull method. The ErrStringCopyNoNull method tries to allocate the VARIANT variables without verifying that the values of the VARIANT variables are not null.

This behavior may cause stability issues when you apply later COM+ rollup packages.

RESOLUTION

If you are using Windows 2000 with SP2 or a later version, use the latest version of the Scripting Runtime object library. Microsoft Windows Script Runtime Version 5.6 includes a version of Cscript.exe that verifies that the values of the VARIANT variables are not null before they are passed to the ErrStringCopyNoNull method.

REFERENCES

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

282896 Post Windows 2000 Service Pack 1 COM+ Rollup Hotfix 7 is available

For more information about Windows Script, visit the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MajorLast Reviewed:6/30/2006
Keywords:kbprb kbDeployment kbhowto KB323240 kbAudDeveloper kbAudITPRO