The information in this article applies to:
SYMPTOMSWhen an ActiveX Scripting host calls a method on an ActiveX Scripting engine, such as Visual Basic Script or Java Script, from a thread other than the one that created the engine, the call might fail with HRESULT E_FAIL or E_UNEXPECTED. CAUSEAfter an ActiveX Scripting engine has received a reference to its host by calling the IActiveScript::SetScriptSite method, the scripting engine can no longer accept calls from non-base threads. This happens because the scripting engine checks the thread that makes each call and rejects any calls from non-base threads. NOTE: The base thread is the one that called IActiveScript::SetScriptSite. RESOLUTION
After the IActiveScript::SetScriptSite method has been called, you cannot call scripting engine methods on non-base thread, however, there are two notable exceptions to this rule:
STATUS
This behavior is by design. REFERENCESFor additional information about ActiveX Scripting Hosts, please see the following articles in the Microsoft Knowledge Base: Q182946 InterruptScriptThread causes Invalid Page Fault in OLEAUT32 Additional query words:
Keywords : kbAXScript kbVC kbVC500 kbVC600 kbGrpDSO |
Last Reviewed: April 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |