Deletion & Memory Leak Word 2003

I try to delete a table from a certain range, but get an error: Insufficient Amount of Memory.

Here is my code:

WordInterop.Range _range = XmlNode.Range;

_range.Tables[1].Tables[j + 1].Delete();

What is interesting - Table gets deleted and the second time I call that same code it doesn't fire any exceptions...

Wonder what could cause that behavior and how to fix it

 

Thanks, Dmitry



Answer this question

Deletion & Memory Leak Word 2003