Microsoft KB Archive/323240

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

Article ID: 323240

Article Last Modified on 3/23/2007

-

APPLIES TO


 * Microsoft Windows 2000 Service Pack 2, 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.

