G
Guest
Hi,
I am writing an external utility that would just open and close all the Word
documents in a particular directory tree, catching the exceptions thrown if
any and logging them, to identify documents that crash Word. More often than
not, the directory tree contains around 2000 - 3000 documents. Initially i
used a single Word process to open and close all these docs and i kept
getting memory problems and i could not avoid any dialogs (security) shown
by Word, so now i open one Word process for each document, and time out to
avoid the dialogs. All is fine as long i run this on a small document
repository of aroun few hundred documents, but when i run it on large
repositories, typically containing 2000 - 3000 documents, it runs for around
1000 docs without any problem and then for all the docs I try to open, i get
the exception "There is insufficient memory. Save the document now". Can
someone help me out here??
More specifically can Word process be created and killed around 2000 times
without any problems, programmatically? I am using C#.NET and Word 11.0
object library.
Thanks and Regards,
Laks
I am writing an external utility that would just open and close all the Word
documents in a particular directory tree, catching the exceptions thrown if
any and logging them, to identify documents that crash Word. More often than
not, the directory tree contains around 2000 - 3000 documents. Initially i
used a single Word process to open and close all these docs and i kept
getting memory problems and i could not avoid any dialogs (security) shown
by Word, so now i open one Word process for each document, and time out to
avoid the dialogs. All is fine as long i run this on a small document
repository of aroun few hundred documents, but when i run it on large
repositories, typically containing 2000 - 3000 documents, it runs for around
1000 docs without any problem and then for all the docs I try to open, i get
the exception "There is insufficient memory. Save the document now". Can
someone help me out here??
More specifically can Word process be created and killed around 2000 times
without any problems, programmatically? I am using C#.NET and Word 11.0
object library.
Thanks and Regards,
Laks