Community
Participate
Working Groups
Build Identifier: Each comparing MS Word documents creates new process. The process is not killed when closing compared document. It leads to having many WINWORD processes when comparing intensively word documents.. The workaround is to kill these processes manually. Reproducible: Always Steps to Reproduce: 1. Add two word documents to workspace 2. Select these documents and choose "Compare with" -> "each other" 3. Close compare editor 4. Exit Eclipse 5. Go to Windows Task Manager. You will see WINWORD process.
It seems to be comparing issue. - Each time you compare documents, new WINWORD process is created. - When you open and close Word document in Eclipse several times only one WINWORD process is working. However I observed that this one process when opening document is also never killed (another bug?)
Those two cases may be related. Let's keep one bug report for now.
The cause of many WINWORD processes is creating eac time OleClientSite(frame, SWT.NONE, "Word.Application"). This line is executed in org.eclipse.compare.internal.win32.WordComparision line 318. Following code: Display display = new Display(); final Shell shell = new Shell(display); frame = new OleFrame(shell, SWT.NONE); for (int i = 0; i < 5; i++) { clientSite = new OleClientSite(frame, SWT.NONE, "Word.Application"); clientSite.dispose(); } Creates 5 WINWORD processes. Felipe, do you know about this issue? Are you going to fix it in SWT?
(In reply to comment #3) > Felipe, do you know about this issue? Are you going to fix it in SWT? I fixed a bug very similar to this one in the past (maybe it was excell, can't remember). I do not have a bug number for this issue, I do not have a fix either.
I have created bug 32122 for the issue mentioned in comment 3
Created attachment 176328 [details] patch According to Felipe suggestion from bug 322122 comment 1 I have provided a patch. The patch quits word application without saving any changes before disposing it.
Created attachment 177390 [details] patch After applying patch for bug 311011 the previous patch did not apply. Here is patch which applies.
Created attachment 177405 [details] Krzysztof's patch with minor changes
Released to HEAD. Thanks Krzysztof.
Verified on I20100912-2000, on Windows XP with Word 2002 (XP).