Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Microsoft.JScript.IVsaScriptScope.RemoveItem and Microsoft.JScript.IVsaScriptScope.RemoveItemAtIndex methods dispose but do not remove the specified items


Symptoms

The Microsoft.JScript.IVsaScriptScope.RemoveItem and Microsoft.JScript.IVsaScriptScope.RemoveItemAtIndex methods dispose but do not remove the specified items. If disposed items remain in the list, any calls to AddItem() will result in an engine closed error.

↑ Back to the top


Resolution

To work around this issue, use reflection to obtain the list of Items, and remove them directly from System.Collections.ArrayList.

↑ Back to the top


More Information

This issue does not exist in .NET 3.5 but does exist in .NET 4.0

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2695289
Revision : 1
Created on : 1/7/2017
Published on : 4/3/2012
Exists online : False
Views : 85