IActiveScript::CloseIActiveScript::Close*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IActiveScript::Clone
*Next Topic: IActiveScript::GetCurrentScriptThreadID

IActiveScript::Close

HRESULT Close(void);

Causes the scripting engine to abandon any currently loaded script, lose its state, and release any interface pointers it has to other objects, thus entering a closed state. Event sinks, immediately executed script text, and macro invocations that are already in progress are completed before the state changes (use IActiveScript::InterruptScriptThread to cancel a running script thread). This method must be called by the creating host before the interface is released to prevent circular reference problems.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.