| Summary: | Comparing word documents does not kill WINWORD processes | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Krzysztof Kazmierczyk <kazm> | ||||||||
| Component: | Compare | Assignee: | Platform-Compare-Inbox <platform-compare-inbox> | ||||||||
| Status: | VERIFIED FIXED | QA Contact: | Szymon Brandys <Szymon.Brandys> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | eclipse.felipe, kazm, Szymon.Brandys | ||||||||
| Version: | 3.5.2 | ||||||||||
| Target Milestone: | 3.7 M2 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | 322122 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Krzysztof Kazmierczyk
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. 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). |