The information in this article applies to:
SUMMARY
When hosting version 1.0 of VBScript or JScript using the ActiveX
Scripting interfaces, dispatch objects are not released immediately by the
scripting engine.
MORE INFORMATION
The version 1.0 VBScript and JScript engines use a deferred garbage
collection scheme to release dispatch object pointers. In the example
above, X is freed eventually by the engine. Version 1.0 of VBScript
and JScript free temporary objects and release dispatch pointers
after 8192 temporary variants or 128K of strings have been allocated.
This script line fills up a temporary string larger than 128K, which
causes garbage collection to start. The temporary string is not stored;
if it were, the string contents would not be freed until the
aforementioned conditions are met and the next garbage collection is
performed.
REFERENCESFor information on hosting VBScript or JScript in an application, refer to the ActiveX SDK documentation, which is available at the following Web site: http://www.microsoft.com/intdev/sdkIt is also available at the VBSCript and JScript Web sites: http://www.microsoft.com/scripting/vbscript © Microsoft Corporation 1999, All Rights Reserved. Additional query words:
Keywords : kbprg AXSDKScripting |
Last Reviewed: December 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |