0

How do I free up memory for the objects of MSHTML Object library. For eg. if I have HtmlTableClass in my windows application then how do I free up the object or dispose the object.

    foreach (HtmlElement elem in elemColl)
                {               
                    if (elem.TagName == "TABLE")
                    {
                        if (((mshtml.HTMLTableClass)(elem.DomElement)).className != null)
                        {
                            if (((mshtml.HTMLTableClass)(elem.DomElement)).className.ToLower() == className)

I have used the instance of HTMLTableClass class. How do I free up the resource?

4

1 回答 1

0

没有可用于删除对象的释放函数,因此它会自行发生。

于 2014-09-24T20:56:50.080 回答