Help with a Doc2Any.exe problem

Hi,

We currently use doc to any in one of our server apps to convert files into the docx format before saving them.  We have been using this for a while but as our frequency of file conversions rise we have noticed that the winword.exe process keeps recreating itself and staying open.

If you watch the processes while our app is running you can see the winword.exe process start and end within a second or so (I presume while doc2any converts the file) but now we have noticed that sometimes it does not close the process and the next time doc2any runs a new process is used leaving the old one hanging.  It is not uncommon for me to look at the server now and see 20 or more winword.exe processes doing nothing but hogging CPU resources.

I have used the following code to call the doc2any.exe

Process proc = new Process();
                proc.StartInfo.FileName = @"C:\\doc2any.exe";
                string strArguments = "";
                strArguments += " D:\\temp\\verydoc.doc D:\\temp\\out.docx";
                Console.WriteLine(strArguments);
                proc.StartInfo.Arguments = @strArguments;
                proc.Start();
                proc.WaitForExit();

I've even tried putting a wait timeout in the proc.WaitForExit() command but that hasn’t helped.

Have you seen this before?  Do you have any suggestions?  Any help would be appreciated,

Thanks
==========================
You can use "-killoffice 1" parameter to kill MS Office instances after conversion be finished completely, if you use this parameter, you can't run several instances of MS Word, or MS Excel or MS PowerPoint application at same time, please notice this matter,

For example,

doc2any.exe -killoffice 1 C:\verydoc.doc C:\out.pdf

doc2any.exe -killoffice 1 C:\verydoc.doc C:\out.docx

VeryDOC

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!