Hi Edvin,
Thank you for using Syncfusion products.
In the DocIO DOM we have reference properties in each
element to preserve the parent, child relation between all the document
elements. Whereas in Close() method we have explicitly unlink the child
elements from its parent element by removing the reference to the parent
element and clear all the child elements from parent’s child collection. This
operation is required specifically to remove references of all the instances
used by DocIO DOM, in order to ensure no instance is referred anywhere/alive in
the current scope and the used resources can be freed.
Kindly invoke Close() method of WordDocument class to
free the resources used by each WordDocument instance. Please find the
code snippet below for your reference.
[C#]
//Releases the resources
used by the WordDocument instance.
doc.Close();
[VB.NET]
'Releases the resources
used by the WordDocument instance.
doc.Close()
Let me know if you have any questions.
Regards,
Nithya